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?

excellent, thank you has been puzzling me for a while.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.