• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 889
  • Last Modified:

var_dump no line feed?

I want to use var_dump to return a web service definition.

It does not format the output with line feed?

How can I fix this?

$wsdl_url =
$client     = new SoapClient($wsdl_url);
array(26) { [0]=> string(70) "ProductInfo KeywordSearchRequest(KeywordRequest $KeywordSearchRequest)" [1]=> string(79) "ProductInfo TextStreamSearchRequest(TextStreamRequest $TextStreamSearchRequest)" [2]=> string(64) "ProductInfo PowerSearchRequest(PowerRequest $PowerSearchRequest)" [3]=> string(79) "ProductInfo BrowseNodeSearchRequest(BrowseNodeRequest $BrowseNodeSearchRequest)" [4]=> string(61) "ProductInfo AsinSearchRequest(AsinRequest $AsinSearchRequest)" .....

Open in new window

1 Solution
Roger BaklundCommented:
Try outputting it within a <pre> element:
echo '<pre>';
echo '</pre>';

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now