From 8ecda077dc09baedcc5eab5d42eed4eaf1b94be4 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Wed, 23 Jul 2014 03:45:40 +0000 Subject: [PATCH] Moved command executions to their own programlisting, for improved readability. And added/moved titles around. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334361 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/info/functions/getopt.xml | 41 +++++++++++++++++------------ 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/reference/info/functions/getopt.xml b/reference/info/functions/getopt.xml index 4f87253e90..cd3da941f1 100644 --- a/reference/info/functions/getopt.xml +++ b/reference/info/functions/getopt.xml @@ -142,19 +142,22 @@ &reftitle.examples; - <function>getopt</function> example + <function>getopt</function> example: The basics ]]> - - Running the above script with php script.php -fvalue -h - will output: - + + php example.php -fvalue -h +]]> + + &example.outputs; - <function>getopt</function> example#2 + <function>getopt</function> example: Introducing long options ]]> - - Running the above script with php script.php -f "value for f" -v - -a --required value --optional="optional value" --option - will output: - + + php example.php -f "value for f" -v -a --required value --optional="optional value" --option +]]> + + &example.outputs; - <function>getopt</function> example#3 - Passing multiple options as one + <function>getopt</function> example: Passing multiple options as one ]]> - - Running the above script with php script.php -aaac - will output: - + + php example.php -aaac +]]> + + &example.outputs;