![]() |
How do you set a List in Alphabetical Order?
Such as a long list of things?
|
What is your data source?
|
Something like this might work...
$var = strtolower($var); if (isset($vars[$var])) { $vars[$var]++; } else { $vars[$var] = 1; } buuuuut, I think this would be a built in function... Lemme check the documentation. edit: Yeah, look here for some nice information... I think... http://nl3.php.net/manual/hu/function.strcmp.php |
Quote:
|
Is it a collection of strings in an array? Is it from a mysql database?
|
Quote:
|
But how are the strings stored? I cant help you until I know that.
|
Quote:
PHP Code:
|
Something like this
PHP Code:
|
Quote:
Code:
Parse error: syntax error, unexpected ')' in index.php on line 47 |
Whats line 47. I have to go now, il be back tomorrow afternoon
|
Quote:
|
| All times are GMT. The time now is 04:23 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0