Jump to content

kratsg

Members
  • Posts

    898
  • Joined

  • Last visited

    Never

Everything posted by kratsg

  1. So, i guess nobody knows? That sucks.
  2. Hey, I'm having an issue with using Wikipedia's OpenSearch API - it sometimes gives me characters in a unicode format: "\u00f1" and I would like to convert back into a correctly displayed format (in this case, n-tilde; spanish n). Any suggestions?
  3. If you know it is the form of an array, might as well use the empty() function. - http://us3.php.net/empty - if(empty($_POST['menuitem']) && is_array($_POST['menuitem']))
  4. I like to point out the function of "foreach" from php.net/foreach "Unless the array is referenced, foreach operates on a copy of the specified array and not the array itself. foreach has some side effects on the array pointer. Don't rely on the array pointer during or after the foreach without resetting it. " IE: you'll want to pass by reference if you wish to change the original array. Edit: It might help to notice that your echo statement is WITHIN a foreach loop (so it references the copy of the array). You should be able to fix this by changing the one line: foreach ($siteList as $sitePrefix => &$siteAttributes) { This should pass the reference of siteAttributes without making a copy.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.