|
|
||||||
|
#1
|
|
|
|
|
Good afternoon,
I am trying to validate a string that would check the first two characters for the presence of GA, then do something. How would this be written? Sincerely, Jim |
|
|
|
#2
|
|
|
|
|
revjjjames wrote:
> Good afternoon, > > I am trying to validate a string that would check the first two > characters for the presence of GA, then do something. How would this > be written? Something like this: $str = "GAGA"; if (substr($str,0,2) == "GA") { // do something } |
|
#3
|
|
|
|
|
This works great, just like I want it. Thank you!
Sincerely - Jim |
|
|
| Similar Threads | |
| Request for assistance please Hi Guys I'm looking for some assistance please, i'm new to php and have created a contact form, with the help of a magazine tutorial. When it runs on my testing server it... |
|
| Request for assistance Hello... Here is the way I have a spreadsheet formatted right now: LEASE ID RENT CODE CURRENT RENT ANNUAL RENT 00010011 BP1 2750.00 ... |
|
| Remote Assistance w/o user request or simplified request Hello, I am a tech in a service department for a company. We have used Remote Assistance successfully to assist our customers to fix problems from our desks. We've found... |
|
| Request for Assistance Hi there, I have a program that I am trying to deploy that checks a DB for messages to a client every 15 seconds or so. If it finds one, it does some stuff, then updates it... |
|
| Request assistance I have searched all over to find out how to remove programs listed on all programs(ie hitting start button ) I have programs listed there that I have removed. I have tried... |
|
|
All times are GMT. The time now is 11:15 PM. | Privacy Policy
|