Arrays in PHP
Array is a collection of data access and stored as a group and are normally access via index key. ex.: $days = array(1=> 'mon', 'tue', 'wed', 'thurs', 'fri', 'sat', 'sun');
ex.: $mov = array('10' => 'casablance', '9.65' => 'To kill a rat', '2.35' => 'The English', '8' => 'Traffic');
Array Convertion $array1 = explode( < separator>, < string> ); $string1 = implode( < glue>, < array> );
ex.: $str = 'mon-tue-wed-thur'; $x1 = explode('-', $str); result: $x1 = 'mon, tue, wed, thur'; |

