Re: [PHP] SimpleXML: convert xml to text

2010-03-14 Thread Dasn
On Sun, 14 Mar 2010 22:02:22 +0800, Ashley Sheridan wrote: On Sun, 2010-03-14 at 21:58 +0800, Dasn wrote: Hello, I want to convert some xml stuff to simple string using php, say: left center1okcenter2right XML; $xml = simplexml_load_string($string); echo $xml; ?> The code will out

Re: [PHP] SimpleXML: convert xml to text

2010-03-14 Thread Dasn
On Sun, 14 Mar 2010 22:02:22 +0800, Ashley Sheridan wrote: On Sun, 2010-03-14 at 21:58 +0800, Dasn wrote: Hello, I want to convert some xml stuff to simple string using php, say: left center1okcenter2right XML; $xml = simplexml_load_string($string); echo $xml; ?> The code will out

[PHP] SimpleXML: convert xml to text

2010-03-14 Thread Dasn
1 ok center2 right" ? Thanks in advance, and please Cc me. :) -- Dasn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to get the 'return type' of a function?

2010-02-23 Thread Dasn
typed language that compiles to multiple targets, one of which is PHP. Thanks Nathan for your comment. But I think the PHPDoc stuff is only for user defined functions, right? The Reflection::getDocComment() has no idea about the built-in functions. -- Dasn -- PHP General Mailing List (http

[PHP] How to get the 'return type' of a function?

2010-02-23 Thread Dasn
} } The problem is there's no 'return type' (i.e. 'string' in this example) info about the function. Could you tell me how to retrieve the 'return type'? Thanks. -- Dasn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] array conversion

2010-02-18 Thread Dasn
Hi guys. How to convert an array like: Array ( [0] => key1 [1] => value1 [2] => key2 [3] => value2 ) to Array ( [key1] => value1 [key2] => value2 ) Is there a built-in function to do this? Please Cc me. :) Thank you in advance. -- PHP General Mailing List (http://www

[PHP] syntax error in class

2010-02-10 Thread Dasn
e syntax error. Why? My php version: D:\>php -version PHP 5.3.1 (cli) (built: Nov 19 2009 10:17:43) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies I'm currently not on this list, please Cc your comment to me. Thanks in advance. -- Dasn

[PHP] php-general-unsubscr...@lists.php.net

2010-01-20 Thread Dasn
-- Dasn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php