Re: String Array Creation and assigment
| From: | Dan | Date: | Mon, 03 Nov 2003 19:37:00 +0000 |
| Subject: | Re: String Array Creation and assigment | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168408@lists.php.net to get a copy of this message | ||
i found the problem myself, array has to be defined like this:
$b=array[0=>0];
then $b can be any array of any type of index and values as you wish to
"assign" to it.
"Dan" <dli0@hotmail.com> wrote in message
news:20031029174716.83400.qmail@pb1.pair.com...
> please help with the following:
>
> I tried this first :
> $b[] = 'Book Worzel, Richard (1989). From Employee to Entrepreneur: how
to
> turn your experience into a fortune. Toronto: Key Porter books.';
> $b[] = 'Book Ries, Al and Jack Trout (1994). The 22 Immutable Laws of
> Marketing. New York: Harper Business';
> ...
>
> then tried this :
> $b[0] = 'Book Worzel, Richard (1989). From Employee to Entrepreneur: how
to
> turn your experience into a fortune. Toronto: Key Porter books.';
> $b[1] = 'Book Ries, Al and Jack Trout (1994). The 22 Immutable Laws of
> Marketing. New York: Harper Business';
> ...
>
> none of the above work, what's right?
>
> help will be appreciated.
>
> Dan