PHP Tricks
To see the var_dump output with decoration see below – camsporny
To see the var_dump output with decoration see below – camsporny
[php] $url = “https://www.youtube.com/watch?v=N4mEzFDjqtA”; $queryString = parse_url($url, PHP_URL_QUERY); parse_str($queryString, $params); $v = $params[‘v’]; //DISPLAY THE IMAGE if(strlen($v)>0){ echo ““; } [/php]
et’s see the codes first. 01. With single quotes: <?php $address = “Dhaka, Bangladesh”; echo ‘<h4> Shamim lives in ‘ . $address . ‘<h4>’; ?>