what is output? 'A': \x41?
| From: | Joan Jiang | Date: | Wed, 18 Oct 2000 18:32:04 +0000 |
| Subject: | what is output? 'A': \x41? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20955@lists.php.net to get a copy of this message | ||
can anyone help me figure it out what is the real output for the piece of
code in below?
//
class foo {
var $foo;
var $bar;
function foo() {
$this->foo = 'Foo';
$this->bar = array('Bar1', 'Bar2',
'Bar3');
}
}
$foo = new foo();
$name = 'MyName';
echo <<<EOT
My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should print a capital 'A': \x41
EOT;
//
thanks
Joan
> About Cpdf quesiton ,i downloaded php4 from php4win.de
> 20577 by: Christine Green
>
> email varification
> 20578 by: Dallas Kropka
> 20579 by: Jason Murray
> 20583 by: Wico de Leeuw
> 20584 by: Maxim Maletsky
>
> Re: Number of Rows is a select result set.
> 20580 by: Sebastian Stadtlich
> 20606 by: Matthew Leingang
>
> =TITLE or echo TITLE
> 20581 by: Kraa de Simon
>
> Re: PHP and exec() on MS Windows
> 20582 by: Florian Clever
> 20607 by: Daniel Convissor
>
> 4.0.3p1 compile error: libmysqlclient.so: undefined reference to
`compress'
> 20585 by: netbsd alpha
> 20586 by: hennink.patrijs.max.nl
> 20614 by: Thomas Deliduka
> 20615 by: hennink.patrijs.max.nl
>
> job wanted in australia, canada, usa
> 20587 by: David Ly
>
> pb PHP / IMAP forward
> 20588 by: Sebastien MARAUX
>
> Re: Generating bar codes
> 20589 by: rip
> 20624 by: Todd Cary
>
> Error when starting iPlanet w/ PHP4
> 20590 by: Lester June Cabrera
>
> Re: M. Lemos's form class questions
> 20591 by: Jouni Ahto
>
> php.ini value upload_tmp_dir fails
> 20592 by: Wouter de Jong (widexs.nl)
>
> PHP MySQL Install
> 20593 by: Website4S.aol.com
> 20594 by: Wouter de Jong (widexs.nl)
> 20596 by: Maxim Maletsky
>
> CPDF error! Help me,please:
> 20595 by: Christine Green
>
> Simple SQL with MySQL - performance
> 20598 by: Benji Spencer
> 20631 by: Daniel Convissor
>
> file storing in mysql db column mediumblob
> 20599 by: Dominick Vansevenant
> 20634 by: Daniel Convissor
>
> redirect and timers
> 20600 by: Dominick Vansevenant
> 20636 by: Daniel Convissor
>
> Re: Escapeing the execution time....
> 20601 by: Steve Lawson
> 20633 by: Daniel Convissor
> 20637 by: Sebastian Stadtlich
> 20639 by: hennink.patrijs.max.nl
>
> handling encoded form data
> 20602 by: Alan Tu
> 20603 by: Bruin, Bolke de
> 20635 by: Daniel Convissor
>
> warning
> 20604 by: tony
> 20605 by: hennink.patrijs.max.nl
> 20613 by: Sander Pilon
> 20616 by: Paul DuBois
> 20618 by: Phil Driscoll
> 20620 by: tony
> 20630 by: Daniel Convissor
>
> SQL Solution
> 20608 by: Daniel Convissor
>
> Form Solution
> 20609 by: Daniel Convissor
>
> Re: Form Validation
> 20610 by: Maciek Uhlig
>
> Layout Solution
> 20611 by: Daniel Convissor
>
> Re: random generation
> 20612 by: Matthew Leingang
>
> Re: PHP 4.0.3 and Aspell
> 20617 by: Jack Davis
>
> Run PHP-scripts under different UID
> 20619 by: Dmitry Alyabyev
> 20621 by: Teodor Cimpoesu
> 20622 by: Dmitry Alyabyev
>
> php4 session files don't get deleted?
> 20623 by: Peter Van Dijck
>
> Problem with php4 install
> 20625 by: Nick
> 20629 by: hennink.patrijs.max.nl
>
> Re: Calling text files -- HTML content management?
> 20626 by: Shashank Tripathi
>
> Anyone using IMP webmail ? need help!
> 20627 by: Maximo
>
> session user mode
> 20628 by: Hellekin O. Wolf
>
> Re: a way to check date entry
> 20632 by: Daniel Convissor
> 20644 by: scottrus.ipass.net
>
> multiple instances of same class = slow
> 20638 by: Marc Antony Vose
>
> Sessions can be very anoying.Hints??
> 20640 by: Mathijs Dijk
>
> [PHP4] getdate() and the Time zone?
> 20641 by: Chris Blaise
> 20642 by: Thomas Deliduka
>
> 2d array or?
> 20643 by: AJDIN BRANDIC
>
> Beginner's attempt fails
> 20645 by: Michael Talbot-Wilson
> 20647 by: Tom Walsh
> 20648 by: Wico de Leeuw
> 20649 by: Jeffrey A Schoolcraft
> 20650 by: Marc Antony Vose
> 20652 by: Michael Talbot-Wilson
> 20656 by: Philip Olson
>
> how to get blobs from SELECT in interbase with php?
> 20646 by: Max Derkachev
>
> Undefined PLT symbol "DL_UNLOAD"
> 20651 by: netbsd alpha
>
> session id's in A HREFS....
> 20653 by: Mathijs Dijk
> 20658 by: Jeff Demel
>
> eregi help please
> 20654 by: Jeff Lacy
> 20660 by: Hardy Merrill
> 20662 by: Jeff Lacy
> 20665 by: lwh.mysqldeveloper.com
> 20674 by: Jeff Lacy
>
> Encryption types
> 20655 by: Ben Wiechman
>
> sms
> 20657 by: Tyrone Watt
>
> Re: Large Project in PHP using 404 Error-Redirections.
> 20659 by: Niklas Alberth
>
> What is max # variables a page/form can hold?
> 20661 by: Paul Fernandez
>
> 3.0.18RC1
> 20663 by: Sascha Schumann
>
> PHP and Programming Newbies - Take a look here
> 20664 by: Krznaric Michael
>
> php3 MySQL------ is it necessary to convert all dates if I want to
calculate
> ?
> 20666 by: Joachim Ritzer
>
> File NOT locked. WHY ?? HELP PLEASE!!!
> 20667 by: Markus
>
> Executing a PHP script without a *.PHP extension?
> 20668 by: Shashank Tripathi
> 20672 by: Dan Gibbs
>
> 4.0.3p1 Problem Connect to Sybase and MS SQL Server with same bindings
> (linux)
> 20669 by: Micha Leuw
>
> Re: Creating Images using separate PHP files.
> 20670 by: moshe doron
>
> Htaccess with APache on Linux
> 20671 by: Dhaval Desai
>
> array_pad
> 20673 by: Dan Gibbs
> 20677 by: Stefan \"Zipkid\" Goethals
>
> Using FTP Functions
> 20675 by: Paul Burney
>
> devshed style navigation
> 20676 by: Jerry Lake
> 20681 by: Philip Olson
>
> How to access variables in phpinfo()?
> 20678 by: Kraa de Simon
>
> file downloading problem
> 20679 by: Jerry
>
> directory info
> 20680 by: LAST JEDI
>
> apache log file report generator
> 20682 by: Eric Wood
> 20683 by: Tom Walsh
> 20684 by: Kurth Bemis
>
> Frames
> 20685 by: Mike
>
> Primary Key?
> 20686 by: Wee Chua
> 20688 by: Dan Nelson
>
> odbc_result_all() - args
> 20687 by: Srinivasan Ramakrishnan
>
> Administrivia:
>
> To subscribe to the digest, e-mail:
> php-general-digest-subscribe@lists.php.net
>
> To unsubscribe from the digest, e-mail:
> php-general-digest-unsubscribe@lists.php.net
>
> To post to the list, e-mail:
> php-general@lists.php.net
>
>
> ----------------------------------------------------------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>