Skip to content

Instantly share code, notes, and snippets.

@samsonasik
Created March 10, 2014 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsonasik/9475960 to your computer and use it in GitHub Desktop.
Save samsonasik/9475960 to your computer and use it in GitHub Desktop.
always use getSqlStringForSqlObject with sql object
use Zend\Db\Sql;
$sql = new Sql\Sql;
$select = $sql->select($table);
$select->offset(10);
echo $sql->getSqlStringForSqlObject($select);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment