here come is_array($data[x][y]);
Savut
http://www.savut.com
"Bob Bedford" <bedford1@YouKnowWhatToDoHerehotmail.com> wrote in message
news:40e075d5$0$26648$5402220f@news.sunrise.ch...[color=blue]
> "Savut" <webki@hotmail.com> a écrit dans le message de
> news:wBZDc.35$gy2.866@news20.bellglobal.com...[color=green]
>> Just create a new array for an array data :
>>
>> like this
>>
>> $data["Model1"]["Detail1"] = array("Datas1", "Datas2", "Datas3");
>>
>> Savut[/color]
> Thanks, Savut, exactly the help I wanted !
>
> One more question:
> As you can guess, I'm not so confortable with arrays....so, how can I then
> show all datas since sometimes Detail1 can be a value and other it can be
> an
> array:
>
> Like in pseudo-code
> for every value of $data
> if $data[value] is an array
> for every Avalue of $data[value]
> echo("$data[value][AValue][Key] -
> $data[value][AValue][Value]<br>");
> else
> echo(echo("$data[value][Key] - $data[value][Value]<br>");
>
> How can I do this ?
>
> BoB
>
>[/color]