-
Getting first two characters of variable?
Is there a way I can check to see if the first two characters of a variable are "1Z"? Thanks for your help.
Jimmy Day
Senior Systems Analyst
Piedmont Healthcare Corporation
-
if (substr($variable, 1, 2) == "1Z")
-
-
You're right. After all these years I still make that mistake :-(
Damned the one that decided that counting starts with 0... ;-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks