note 105863 deleted from function.return by tularis
| From: | tularis@php.net | Date: | Tue, 20 Sep 2011 19:28:23 +0000 |
| Subject: | note 105863 deleted from function.return by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183318@lists.php.net to get a copy of this message | ||
Note Submitter: sverrimo at gmail dot com
Reason: in docs
----
It is not much used out there but you can assign the return value from a script to a variable:
range.php
<?php
return range(0, 10);
?>
index.php
<?php
$range = include 'range.php';
print_r($range);
// ...
?>