fork download
  1. <?php
  2.  
  3. function tea($str = 'зеленый') {
  4. return "В чашке $str чай<br>\n";
  5. }
  6.  
  7. echo tea(); // выведет значение по умолчанию
  8.  
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
В чашке зеленый чай<br>