Solved

problem with array and unicode/ascii symbols

Posted on 2008-10-26
1
374 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

895 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

12 Experts available now in Live!

Get 1:1 Help Now