Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

PHP classes question

Name: Anonymous 2007-05-02 16:46 ID:sE0QAwWQ

/prog/, I've got a class in PHP with a member named guide-agent (translated from an XML-RPC object) but I can't access it via $className->guide-agent . Here is a snip from print_r( $className );

stdClass Object
(
[guide-agent] => maria
...

Name: Anonymous 2007-05-02 16:52 ID:RmJoh694

php -r "class A { public $you-fail; }"
Parse error: syntax error, unexpected '-', expecting ',' or ';' in Command line
code on line 1


However:

php -r "class A { function __construct(){$this->{'you-fail'}=true;} } $a=new
 A();var_dump($a); print $a->{'you-fail'};"
object(A)#1 (1) {
  ["you-fail"]=>
  bool(true)
}
1

Name: Anonymous 2007-05-02 16:56 ID:sE0QAwWQ

>>2
$2->internets++

tx

Name: Anonymous 2007-05-02 16:59 ID:Heaven

NO EXCEPTIONS

Name: Anonymous 2007-05-03 12:11 ID:9G4tSChp

>>3
HAVE YOU LEARNED NOTHING!?

${2}->internets++;

Name: Anonymous 2007-05-03 12:15 ID:XwgLblRR

WEB DEVELOPERS ARE FERBOTEN IN /PROG/

Name: Anonymous 2007-05-03 12:32 ID:7X51cDnd

Parse error: PEBCAK, unexpected failure in >>1-2

Name: Anonymous 2007-05-03 13:34 ID:Heaven

>>7

STFU, you're cleary not an EXPERT PROGRAMMER.

Name: Anonymous 2007-05-03 15:16 ID:Heaven

>>7
Ceyboard and khair? What the fuck?

Name: Anonymous 2009-01-14 13:40

BBCODE Failure

Name: Anonymous 2009-03-06 6:43


The ICHIGO MASHIMARO OP   WHY IS THAT   anyway I said   I only wanted   opinions from professional   developers I think   we used MFC   for socketing and.

Name: Trollbot9000 2009-07-01 9:12

construct Turing program env?

Name: Anonymous 2009-08-16 17:25

Name: Anonymous 2010-11-28 12:06

Name: Anonymous 2011-02-04 19:10

Name: Sgt.Kabu啡ﴨkiman鍯䣠 2012-05-29 1:30

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List