title: is it possible to convert a string to varbinary in PHP without using the SQL function
body: <p>I was wondering if it is possible to convert a string to varbinary with PHP to get the same effect as with using the SQL function <code>CONVERT(varbinary, 'data')</code> I would like to do this because I am using codeigniter and would like to use active records for this query, and because of this not directly use a string of SQL, but I need to insert the data into a varbinary field in MS-SQL.</p>
  
  <p>Thanks :)</p>