- pathinfo: documentation ( source)
- in_array: documentation ( source)
<?php
$os = array("Mac", "NT", "Irix", "Linux");
if (in_array("Irix", $os)) {
echo "Got Irix";
}
if (in_array("mac", $os, true)) {
echo "Got mac";
}
$ext = pathinfo("http://www.unitel.tv/wp-content/themes/unitel/images/main_logo.png", PATHINFO_EXTENSION);
echo $ext;