News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Alex Netkachov's Blog:
BAT file tips
June 06, 2008 @ 07:58:08

Alex Netkachov has updated a post he made a while back (in 2006 in fact) about making Windows batch files (.BAT) that would do the same thing as some of the functions in PHP. He's added two more to it today - one for string replace and another for splitting a string.

The replace is as simple three line call, much the same as PHP's and the split call, while a bit more complex, is still pretty straight forward (it just needs a few extra variables).

Other methods in the post include a "switch" method, defining a procedure and updating variable by its name.

0 comments voice your opinion now!
bat file tip string replace split function port


blog comments powered by Disqus

Similar Posts

Wez Furlong\'s Blog: Don\'t blog bugs, file bug reports

Alex Netkachov's Blog: PHP fluent API tips

International PHP Magazine: Poll Question: Which One of the Following is Your Favorite PHP Game?

Ilia Alshanetsky's Blog: mail() logging for PHP

Joshua Eichorn\'s Blog: PHP AJAX File Upload Progress Meter Updates


Community Events





Don't see your event here?
Let us know!


conference podcast tips community api deployment developer zendserver release interview library voicesoftheelephpant framework language laravel symfony introduction bugfix list series

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework