glenelkins Posted January 13, 2007 Share Posted January 13, 2007 HiHow would I remove all characters from a string except for the first.For example: "House" i want to keep "H" Quote Link to comment Share on other sites More sharing options...
taith Posted January 13, 2007 Share Posted January 13, 2007 $string='House';echo $string{0}; #H Quote Link to comment Share on other sites More sharing options...
Nicklas Posted January 13, 2007 Share Posted January 13, 2007 better to use [ and ], { and } will be out of use in PHP6 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.