Advertisement

07.07.2005 at 01:55PM PDT, ID: 21484043
[x]
Attachment Details

Coming from PHP: print_r, var_dump ?

Asked by arantius in Python Scripting Language

Tags: python, print_r, var_dump

Ok, I'm a very-well-versed web developer in PHP and more.  I've got a new job concentrating on front-end coding, but I have to cross over into some back-end as well, but based in Python not PHP.  I'm a seasoned programmer but new to python so expect me to come back with more questions =)  For now:

PHP has functions that let me easily see the contents of any array, object, etc, etc.  Any variable in fact.  I am speaking of print_r and var_dump . I am aware that at the interactive prompt I can just type a variable name and generally get the same thing, but how do I do that from within a script?Start Free Trial
 
Loading Advertisement...
 
[+][-]07.07.2005 at 05:20PM PDT, ID: 14392956

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2005 at 05:54PM PDT, ID: 14393068

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.02.2005 at 03:18PM PDT, ID: 14584312

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Python Scripting Language
Tags: python, print_r, var_dump
Sign Up Now!
Solution Provided By: Sandra-24
Participating Experts: 2
Solution Grade: B
 
 
[+][-]08.02.2005 at 03:45PM PDT, ID: 14584476

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.16.2005 at 07:06AM PST, ID: 15303642

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32