redarrow Posted March 12, 2007 Share Posted March 12, 2007 it hard to exsplain but i see a lot of code woth the array like this $name=array(); can you exsplain the concept please cheers. dont exsplain harshly nice and gently lol. Quote Link to comment Share on other sites More sharing options...
trq Posted March 12, 2007 Share Posted March 12, 2007 That defines an empty array. Take a look at the array function. Quote Link to comment Share on other sites More sharing options...
redarrow Posted March 12, 2007 Author Share Posted March 12, 2007 just another way to do an array ? oh well cheers. <?php $x=array(); $a[0]="my"; $a[1]="name"; $a[2]="is"; $a[3]="redarrow"; <?php $a=array(); $a[]="my"; $a[]="name"; $a[]="is"; $a[]="redarrow"; foreach($a as $go){ echo "$go<br>"; } ?> result Array ( [0] => my [1] => name [2] => is [3] => redarrow ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.