Get first word in string php the_title WordPress

Posted by j-man86 on Stack Overflow See other posts from Stack Overflow or by j-man86
Published on 2010-04-17T18:13:03Z Indexed on 2010/04/17 18:23 UTC
Read the original article Hit count: 320

Hi,

I'm trying to shorten a wordpress title to just the first word. For a page named "John Doe" I want to have a sub title somewhere on the page that says "About John" so I want to just get the first word from the title.

Is there a way to do this with PHP?

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about string-manipulation