RE: [PHP-GENERAL] Array
| From: | Millaway, John | Date: | Thu, 15 Jun 2000 16:15:58 +0000 |
| Subject: | RE: [PHP-GENERAL] Array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-1955@lists.php.net to get a copy of this message | ||
> Sorry but I'm new inPHP.
> How can I put some variables in array
> supose my variables are $a $b $c ....
> thanks
Read the docs, please!
// to put them in a new array
$arr = array( $a , $b, $c);
// to put them in an existing array
array_push( $arr, $a, $b, $c);
-John