[ create a new paste ] login | about

Link: http://codepad.org/tks0vDqh    [ raw code | output | fork ]

PHP, pasted on Oct 15:
1
2
3
4
5
6
7
<?
$str = 'The Hunger Games';
if (strtolower(substr($str,0,3)) == "the"){
    $str = trim(substr($str,3)).', The';
}
echo $str;
?>


Output:
1
Hunger Games, The


Create a new paste based on this one


Comments: