0

hi

was just wondering what the difference is between the echo and print_r commands bacause when i run this code:

<?php 

$output = "this sentence";
$face = explode(" ", $output);

print_r($face); 
echo $face;
?>

it outputs Array ( [0] => this [1] => sentence ) Array

so the echo isn't printing...whats the difference? matter with the code?

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by EvilOrange
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.