PHP Classes

Notice: Undefined offset: 4 ...

Recommend this page to a friend!

      Tag Cloud Generator  >  All threads  >  Notice: Undefined offset: 4 ...  >  (Un) Subscribe thread alerts  
Subject:Notice: Undefined offset: 4 ...
Summary:Erreur PHP
Messages:3
Author:David
Date:2010-06-02 14:40:30
Update:2010-06-02 15:39:41
 

  1. Notice: Undefined offset: 4 ...   Reply   Report abuse  
Picture of David David - 2010-06-02 14:40:30
Bonjour et merci pour cette class !

J'ai le message d'erreur suivant "Notice: Undefined offset: 4 in /xx/xx/xx/xx/class/TagCloudGenerator.inc.php on line 91".

Quand je fait un "echo $tagCloudGenerator->generateTagCloudFromArray($sampleArray);"


Avez-vous une idée ?
Merci à toi !

[::Hello and thank you for this class!
I have the following error message "Notice: Undefined offset: 4 in / xx / xx / xx / xx / class / TagCloudGenerator.inc.php on line 91".
When I did a "echo $ tagCloudGenerator-> generateTagCloudFromArray ($ sampleArray);"
Have you any idea?
Thank you to you!::]

  2. Re: Notice: Undefined offset: 4 ...   Reply   Report abuse  
Picture of Er. Rochak Chauhan Er. Rochak Chauhan - 2010-06-02 15:01:09 - In reply to message 1 from David
I think your text/values are not comma separated. Please let me know the content/text you are using.

  3. Re: Notice: Undefined offset: 4 ...   Reply   Report abuse  
Picture of David David - 2010-06-02 15:39:41 - In reply to message 2 from Er. Rochak Chauhan
This error comes from your example.
So :

$sampleArray=array("Rochak Chauhan,http://www.rochakchauhan.com,3","DMW Validator,http://www.dmwvalidator.com,8","PHP Classes,http://www.phpclasses.org,4");

$tagCloudGenerator= new TagCloudGenerator();

echo @$tagCloudGenerator->generateTagCloudFromArray($sampleArray);

I am in France you in India, I think it's so cool! Thank you again!