i am getting error with the for each loop in php :         <?php
  
          $messages = get_msg();
          foreach ($messages as $message) {
        	echo '<strong>'.$message['sender'].'Sent</strong></br>';
         	echo $message['message'].'<br/></br>';
             }

           ?>

getting this erorr :(

Warning: Invalid argument supplied for foreach() in C:\xamp\htdocs\chatbox\index.php 