Home
Random
Nearby
Log in
Settings
Donate Now
If Wikipedia is useful to you, please give today.
About Wikipedia
Disclaimers
Search
Command-line argument parsing: Difference between revisions
Article
Talk
Language
Watch
View history
Edit
Browse history interactively
← Previous edit
Next edit →
Content deleted
Content added
Visual
Wikitext
Revision as of 16:24, 6 July 2010
edit
Tisane
(
talk
|
contribs
)
6,391
edits
→
PHP
:
a more useful example
← Previous edit
Revision as of 16:38, 6 July 2010
edit
undo
Tisane
(
talk
|
contribs
)
6,391
edits
→
PHP
:
one true brace style
Next edit →
Line 32:
foreach( $args as $arg ) {
$tmp = explode( ':', $arg, 2 );
if( $arg[0] == "-" )
{
$args[ substr( $tmp[0], 1 ) ] = $tmp[1];
}
}
return $args;