Is there any point in avoiding the integer in the request after converting it using intval() ?
intval()
I use an integer like this:
$sql .= " LIMIT " . $this->db->escape(intval($offset)) . ", 10";
No, intval will always return an integer ( 0 on failure).
0
Not. because as a result of intval you cannot get anything but a number.
Source: https://habr.com/ru/post/923372/More articles:Taking the good parts of both Spring and php in a common server environment - springSearch column name in all databases - sql-server-2008How to set up a remote Hbase server for my Java application - javaHow to get the maximum number of indexes for TemplateRepeatIndex in DWT - tridionCreating XML APIs with Grape - xmlHow to read XML file using JAXB? - javaHow to find if there are n consecutive bits in a 32-bit buffer? - algorithmHow to deal with confusing usage dependencies to start unit testing? - unit-testingLink to form label using route - symfonyMove the class name to the next sibling every N seconds - jqueryAll Articles