FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » $this->delimiter in php explode
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
$this->delimiter in php explode [message #177718] Tue, 17 April 2012 01:45 Go to previous message
j is currently offline  j
Messages: 9
Registered: July 2011
Karma:
Junior Member
I've written a function in a class

public $delimiter = ';';

....

public function some_function(){
echo $this->delimiter; // yields: ;
$SOME_ARRAY= explode($this->delimiter,$some_string);

echo $this->delimiter // yields: 1

So, running explode changes the value of the class variable $delimiter.
It's obvious I'm stepping on something, but I'm not sure what other than
there is a delimiter in explode. What does $this mean inside the explode
function?

Jeff
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: problems with exec()
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 18:36:12 GMT 2024

Total time taken to generate the page: 0.03899 seconds