doubledee Posted April 25, 2011 Share Posted April 25, 2011 In Visual Basic there is a Left() function which returns ___ characters from a string starting at the left. How do I return "Washing" from the string "Washington, George"? Debbie Quote Link to comment https://forums.phpfreaks.com/topic/234708-is-there-a-left-function/ Share on other sites More sharing options...
Pikachu2000 Posted April 25, 2011 Share Posted April 25, 2011 PHP has substr, and MySQL has LEFT(). Quote Link to comment https://forums.phpfreaks.com/topic/234708-is-there-a-left-function/#findComment-1206126 Share on other sites More sharing options...
doubledee Posted April 25, 2011 Author Share Posted April 25, 2011 Okay, thanks. Debbie Quote Link to comment https://forums.phpfreaks.com/topic/234708-is-there-a-left-function/#findComment-1206128 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.