$videoskey_list = explode(',',$result[$x]["videos_key"]);
$videosname_list = explode(',',$result[$x]["videos_name"]);
foreach($videoskey_list as $videoskey => $videos_key && $videosname_list as $videosname => $videos_name)
{
echo ' <button id="playtrailer" class="playtrailer" data-src="'.$videos_key.'"> '.$videos_name.' </button>';
}
How do i use && in foreach. It should work, right? Or PHP do not support && in foreach?
Error
Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND),