PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Yes it is... It's completely legal and it validates at http://validator.w3.org/ Also another combination which is completely legal that your regex would have trouble with is this:
w3 validator wrote: Below is a list of the warning message(s) produced when validating your document.
1. Warning Line 6 column 9: character "<" is the first character of a delimiter but occurred as data.
<p> if(1 < 2) </p>
This message may appear in several cases:
* You tried to include the "<" character in your page: you should escape it as "<"
* You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
* Another possibility is that you forgot to close quotes in a previous tag.
Anyway, unless Robert K S has more questions related to the topic of this thread we can probably just drop it.