-2

I would like to understand how "return" works in a php script. (not a function/method) but a standalone file.

script.php

 <?php
   return array("hello", "world");

How do I use script.php to fetch the array it is returning.

ps. noticed this usage in sami (php api generator)

Prakash Raman
  • 13,319
  • 27
  • 82
  • 132

0 Answers0