fork download
  1. <?php
  2.  
  3. function processOptions(array &$options) {
  4. echo $options["text"]; //как мне сюда получить результат
  5. echo $options["text2"]; //как мне сюда получить результат
  6. }
  7.  
  8. $test = ['text' => 'yes', 'text2' => 'no'];
  9. processOptions($test);
Success #stdin #stdout 0s 83008KB
stdin
Standard input is empty
stdout
yesno