Hi all,
I need to frequently check an array to see if a key exists, and if so to print out text. I have therefore written the following function:
funtion printintif($argarray, $keyname, $intro) {
if (array_key_exists($keyname,$argarray)) {
echo $intro;
}
}
The trouble is that i get the following error whenever it is called:
PHP Parse error: parse error, unexpected T_STRING in c:...
Can anyone shed some light?
Thanks,
Jim