How to Get Only The First Word in PHP?

Posted by ali on Stack Overflow See other posts from Stack Overflow or by ali
Published on 2010-03-19T11:26:16Z Indexed on 2010/03/19 11:31 UTC
Read the original article Hit count: 184

Filed under:
|

hi, i want only the first word of a variable.. example input:

<?php $myvalue = Test me more; ?>

the output should only "Test", the first word of the input.. how can i do this?

© Stack Overflow or respective owner

Related posts about php

Related posts about remove