$matches = array('Makap', true, 'false', 35); for ($i = 0, $cnt=count($matches); $i < $cnt; $i++) { echo "$matches[$i]\n"; }