Update phpapi-tutorial.md

There is a typo with str_replace. 
*http://es.php.net/manual/en/function.str-replace.php