3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_position($string) { $first_letter = strtolower(substr($string,0,1)); if( strstr("aeiou",$vowels) ) { $string = "an <strong>".ucfirst($string)."</strong>"; } else { $string = "a <strong>".ucfirst($string)."</strong>"; } return $string; } $output1 = get_position("Advertising"); $output2 = get_position("Marketing"); echo $output1."<br>"; echo $output2."<br>";

preferences:
40.65 ms | 402 KiB | 5 Q