Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there an easy way to find the length of a substring...? 2

Status
Not open for further replies.

rdyoll

Technical User
Aug 11, 2003
39
US
If I have a variable such as $data ($data will be a string of text), and:

if (substr($data, 0) > 30) {
do something;
}

obviously, this does not work.
What am I missing?
 
...AHAAAAA, I knew there was something I was missing... Thank you!!
 
If it saved you time, and you're too far away to buy the guy a beer ( or whatever s/he prefers )

STAR the person

--Paul
 
PaulTEG came up with the best advice found on this site ever: BEER. I gave him a star for it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top