This is a discussion on "Variable into an Array" within the PHP Forum section. This forum, and the thread "Variable into an Array are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Variable into an Array
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Variable into an Array
Hello Can i put variable into an array like I am trying, if so how do I do it? Jamie PS I have checked google and cannot work out how its done |
|
|
|
|||
|
Re: Variable into an Array
$SubjectArray = array(
"Pre-Sales" => $row_rs_result, "Business proposition" => $emailenq, "Other" => $somethingelse ); Your original had a syntax error - a comma on the line just before the ); . And I suspct you wanted the contents of the variables in the array, and not their names, so I've taken out the single quotes. |
![]() |
| Tags |
| variable, array |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sorting a PHP array | fallen_angel | PHP Forum | 3 | Apr 20th, 2007 22:18 |
| Top 4 array to text box | buzcajun | Flash & Multimedia Forum | 10 | Sep 14th, 2006 19:13 |
| Sorting a new array from an existing array | Ozeona | Flash & Multimedia Forum | 2 | Sep 20th, 2005 08:43 |
| array unable to check another array so as to be displayed | Ozeona | Flash & Multimedia Forum | 1 | Aug 5th, 2005 10:26 |
| selecting a value from array | Ozeona | Flash & Multimedia Forum | 2 | Jul 27th, 2005 10:14 |