C
|
cgphp 8/30/2013 |
preg_match() returns 1 if the pattern matches given subject, 0 if it does not, or FALSE if an error occurred. $match = preg_match("[PR-]",$values["nationality"]);
|
P
|
phpcmk author 9/1/2013 |
preg_match() returns 1 if the pattern matches given subject, 0 if it does not, or FALSE if an error occurred. $match = preg_match("[PR-]",$values["nationality"]);
|
C
|
cgphp 9/2/2013 |
I think you don't need the preg_match check here. You have three fixed values: Singaporean, PR-Malaysian and Indonesian. Make check control against these values. |
P
|
phpcmk author 9/3/2013 |
I think you don't need the preg_match check here. You have three fixed values: Singaporean, PR-Malaysian and Indonesian. Make check control against these values.
|
C
|
cgphp 9/3/2013 |
Check this solution: $match = preg_match("/^PR-/",$values["nationality"]); |