Cannot use string offset as an array in...

darylcarpo

New Member
Messages
21
Reaction score
0
Points
0
Help here guys. Need help in my php... It says "Cannot use string offset as an array in..."
PHP:
$[0]k=date("l M d, Y h:i A",$items[$x]['timestamp']+$oss+18000)." GMT".$osh;
$minute=floor((double)$items[$x]['duration']/60);
$second=fmod((double)$items[$x]['duration'],60);
Actually that is part of the script in line 313...
 

quantum1

New Member
Messages
68
Reaction score
0
Points
0
Please show us the source code where you define the $items array. Also, a more complete description of the error and so forth is needed.
 

Jake

Developer
Contributors
Messages
4,057
Reaction score
5
Points
0
first off whats $[0]k ? and second you don't have to cast those variables into doubles in php....
 
Top