Update phpapi-tutorial.md

Fixed code to get header.  Changed condition to be !=.