Solved

problem with array and unicode/ascii symbols

Posted on 2008-10-26
1
363 Views
Last Modified: 2008-10-26
Hello,
i have very big array list, total 1000.
it looks something like this
$word['E'] = array('E' => 'asfumasuf','asjfmasf','aksjfasfawg');

1000 ascii symbols.
Now i write
echo key($word['E']);
And it outputs me 'E' letter.
But i need to run cycle 1000 times, for every letter, for every symbol.
so i did something like this:
for ($i=0;$i<=1000;$i++)
{
$blabla = '&#'.$i++;
echo key($word[$blabla]);

But i get this error:

Warning: key() [function.key]: Passed variable is not an array or object in C:\wamp\www\bla\zzz.php on line 1006

Can someone explain me, how can i solve this thing
}
0
Comment
Question by:fikitifikitifak
1 Comment
 

Accepted Solution

by:
fikitifikitifak earned 0 total points
Comment Utility
solved myself :)
just used chr($i)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo‚Ķ
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now