title: Php: How to do a var_dump() in the syslog()?
body: <p>I'm debugging some php code of an API, and for this I'm using syslog() to view my debug messages. The problem is that I want to get some usefull logs. For example, is something null or false? Normally I use var_dump() for this, but since I'm working with in an API, var_dump, f*%$s up the API output. </p>
  
  <p>I tried doing <code>syslog(LOG_ERR, var_dump($myVar));</code>, but to no avail.</p>
  
  <p>Does anybody know how I can "pretty print" variables/arrays in the syslog?</p>