precision – PHP Reference Book Blog https://phpreferencebook.com/ PHP Reference: Beginner to Intermediate PHP5 Sun, 01 Oct 2017 17:21:19 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.13 Sprintf() Tip https://phpreferencebook.com/tips/sprintf-tip/ https://phpreferencebook.com/tips/sprintf-tip/#comments Tue, 22 Jul 2008 06:44:39 +0000 https://phpreferencebook.com/?p=15 From the book:

For MySQL security, you can use sprintf() to force user input to have a maximum length and be valid for the structure of your database. Use the precision specifier to automatically parse the string submitted by GET or POST.

]]>
https://phpreferencebook.com/tips/sprintf-tip/feed/ 1