Keith Devens .com |
Thursday, March 18, 2010 | ![]() |
| The very name "selection" implies that you're choosing between two or more variants. So that means that the end... – Dr. Walter Veith | ||
|
| ← Writing About Literature | Neat software → |

M. Bean wrote:
Adam Langley (http://www.imperialviolet.org) wrote:
Well, http://www.imperialviolet.org/page10.html#e182 suggests that ∩ would do the trick. I'm not sure if you escape ampersands, so that's amp-cap-semicolon if you dont 
AGL
Keith (http://www.keithdevens.com/) wrote:
Neat! Actually, HTML is escaped automatically, so I don't think I could do that if I wanted to
Something to think about for the next version of my parser though.
M. Bean wrote:
Well, let's find out... ∩ is unescaped... and escaped, here it comes... wooo.... my heart is beating so quickly, I can't stand it! \∩ Did it work?
M. Bean wrote:
Oh, no! DENIED.
Keith (http://www.keithdevens.com/) wrote:
Told you!
Michael wrote:
I realise this is a very old post, but just to let you know that there is a problem with the last merge function.
$arr1[0] = 15;
$arr1[2] = 30;
$arr2[1] = 45;
$arr2[3] = 60;
merge ($arr1, $arr2);
var_dump ($arr1);
Will delete all the values in $arr1 and replace them with $arr2 due to "!array_key_exists(0, $a)" in the first "if" statement.
Keith (http://keithdevens.com/) wrote:
Will delete all the values in $arr1 and replace them with $arr2 due to "!array_key_exists(0, $a)" in the first "if" statement.
Working as intended. It's meant to merge associative arrays, not normal arrays, and that's what the check is there for. Yes it's a kludge cause there's no sure way to know whether a PHP array is intended as an associative array or as a normal array.
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):
Generated in about 0.11s.
(Used 8 db queries)
hehe... I was reading that as "a to the power of b", in which case I was like "what kind of crack are you smoking?"