Hi all
I have this problem whereby im try to create some kind of an array of a
split off a file.
//Here I pull the file in the array $contents.
$contents = file($hotelpathprod.$hotel);
foreach($contents as $arr=>$conts){
$ff[] = split("\|",$conts); //Here im trying to do a split
on the file
}
Now this the array $ff is fine, the catch is now, it that, the first element
has a have like "p101".
What I trying to do is do a substr($abc,1) and the take that value and make
that the number of the element I want.
This is what I was going with.
foreach($ff as $qaz=>$wsx){
$ffile[substr($qaz[0],1)]=$qaz[0];
}
If anyone could assist, it would really be appreciated.
Kind Regards
Brent Clark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php