title: How to format array out with printf in php
body: <p>I know the <code>printf</code> statement in PHP can format strings as follows:</p>
  
  <pre><code>//my variable 
  $car = "BMW X6";
  
  printf("I drive a %s",$car); // prints I drive a BMW X6, 
  </code></pre>
  
  <p>However, when I try to print an array using <code>printf</code>, there does not seem to be a way to format it. Can anyone help?</p>