I am facing something really strange and cant understand why I am getting this next result, I have 2 files, index.php and send.php send.php fetching from the DB list of users and index.php showing the list as table, in index.php I am using require send.php, in send.php i have this code
$sth->setFetchMode(PDO::FETCH_ASSOC);
$sth->execute();
$result = $sth->fetchAll();
echo '<pre>';
print_r($result);
and its working great, but in index.php
<?php if (isset($result)): ?>
<pre>
<?php print_($result); ?>
</pre>
<?php endif; ?>
I am getting the array like this [0] => array
why?