KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In PHP 5.3 there is a nice function that seems to do what I want: strstr(input,"\n",true) Unfortunately, the server runs PHP 5.2.17 and the optional third parameter of strstr is not available. Is there a way to achieve this in previous versions in one line?
Tags (comma-separated)
Save Edits
Cancel