Jump to content

[SOLVED] Basic array question


w1ww

Recommended Posts

Hello,

 

I've a quick question:

 


$cats = array(1,2,3);

 

and

 


$b = 1,2,3;

array($b);

 

They produce different results, but what I want is that when I do array($b) it should show work as array(1,2,3) and it shouldnt turn the first position of the array in 1,2,3.

 

I hope this is clear.

 

Thank you help

Link to comment
https://forums.phpfreaks.com/topic/121997-solved-basic-array-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.