Solved

problem with array and unicode/ascii symbols

Posted on 2008-10-26
1
390 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
ID: 22807150
solved myself :)
just used chr($i)
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

829 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