PHP Classes

php5

Recommend this page to a friend!

      anagrams  >  All threads  >  php5  >  (Un) Subscribe thread alerts  
Subject:php5
Summary:anagrams doesn't work with php5
Messages:3
Author:okaboy
Date:2010-09-26 08:52:31
Update:2012-11-14 10:21:30
 

 


  1. php5   Reply   Report abuse  
Picture of okaboy okaboy - 2010-09-26 08:52:31
Hi

I am trying your class and it doesn't work with php5.
I am a newbie for php5 and I don't know how to solve the problem.
Always it shows the error:
PHP Notice: Undefined variable: bOne_bond in anagram.php on line 41
PHP Fatal error: Cannot access empty property in anagram.php on line 41

If I put into anagram.php
$bOne_bond = '' or = false/true
before
this->$bOne_bond = false;
then the error is
PHP Fatal error: Cannot access empty property in anagram.php on line 41

Perhaps, you can review the code to do it run in php5, please.

Sorry for my bad English and thanks for your attention

  2. Re: php5   Reply   Report abuse  
Picture of okaboy okaboy - 2010-09-26 18:39:22 - In reply to message 1 from okaboy
I've downloaded the class from your home page and it work.

Forget the post :-D

Thanks!

  3. Re: php5   Reply   Report abuse  
Picture of Jérémy Lecomte Jérémy Lecomte - 2012-11-14 10:21:31 - In reply to message 1 from okaboy
Hi,

you must delete the "$" to "$this->$bOne_bond = false;"

 
For more information send a message to info at phpclasses dot org.