Solved

problem with array and unicode/ascii symbols

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

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…
This article discusses four methods for overlaying images in a container on a web page
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.

726 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