Page 1 of 1

Are there other languages that use "<?" ?

Posted: Wed Jun 24, 2009 12:54 pm
by Wolf_22
Obviously, PHP uses this when beginning to process, but are there any other languages that use this ("<?") as well? The reason I'm asking this is because I'm in the middle of writing something that sets a variable to TRUE when it comes into contact with the above and if there are other languages that use that, then it may cause me problems.

Code: Select all

if(substr_count($src,"<?") && substr_count($src,"?>")){$code = "php";}
Thanks for any input.

Re: Are there other languages that use "<?" ?

Posted: Wed Jun 24, 2009 1:15 pm
by Benjamin
XML is one.

Re: Are there other languages that use "<?" ?

Posted: Wed Jun 24, 2009 2:06 pm
by Wolf_22
Eck! Ha. Yep, that is one... :banghead: