The[] represent a reference to the array. For example, if I use;
$string = "this is a test string";
$exploded = explode(" ",$string);
for ($i = 0; $i <= 4; $i++) {
print "\$exploded[\$i] => " . $exploded[$i] . "<BR>";
}
?>
This would print something like;
$exploded[0] => this
$exploded[1] => is
$exploded[2] => a
$exploded[3] => test
$exploded[4] => string
As you can see, each word can be reference with the $array_name[] call. i.e $array_name[0].
Hope thats clear
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Code:
<? $string = "this is a test string";
$exploded = explode(" ",$string);
for ($i = 0; $i <= 4; $i++) {
print "\$exploded[\$i] => " . $exploded[$i] . "<BR>";
}
?>
This would print something like;
$exploded[0] => this
$exploded[1] => is
$exploded[2] => a
$exploded[3] => test
$exploded[4] => string
As you can see, each word can be reference with the $array_name[] call. i.e $array_name[0].
Hope thats clear

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!