Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #5550
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!news.albasani.net!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
| Newsgroups | comp.lang.php |
| Subject | Re: $this->delimiter in php explode |
| Date | Tue, 17 Apr 2012 09:26:36 +0200 |
| Lines | 26 |
| Message-ID | <9v4k9cFdhoU1@mid.uni-berlin.de> (permalink) |
| References | <jmihvb$cna$1@news.albasani.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de ZR+3r4Hq8wff/1Gqu22Ebw/zy4uP/lPpfWZABJ0OQ7QEHI17Q= |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 |
| In-Reply-To | <jmihvb$cna$1@news.albasani.net> |
| Xref | csiph.com comp.lang.php:5550 |
Show key headers only | View raw
Am 17.04.2012 03:45, schrieb j:
> 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
The error must be outside the shown code, as is the case with setting of
$some_string. The parameters here are okay.
Maybe just do a string search on "delimiter"?
/Str.
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread
$this->delimiter in php explode j <mung_me@att.net> - 2012-04-16 21:45 -0400 Re: $this->delimiter in php explode Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-16 22:08 -0400 Re: $this->delimiter in php explode "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-17 09:26 +0200
csiph-web