[PHP-DB] Re: retrieving field names in ascending order

2005-09-10 Thread Mark Jordan
Does php have anything like the Visual Basic statement Option Compare String or Option Compare Database which controls how visual basic sorts strings like this.? If it does, then it might help *rushes off to check php manual* -- --- theExile.vze.com www.stpaulswalsall.com -- PHP Database

RE: [PHP-DB] retrieving field names in ascending order

2005-09-10 Thread ziv gabel
You can use usort which use yor function to compare the values The syntax is usort($aaray,function) And use this function function cmp($a, $b) { if (strtolower($a) == strtolower($b)) { return 0; } return (strtolower($a) strtolower($b)) ? -1 : 1; } -Original Message-