?
Solved

problem with array and unicode/ascii symbols

Posted on 2008-10-26
1
Medium Priority
?
403 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

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

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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 …
Suggested Courses

770 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