Quantcast
Channel: tip – PHP Reference Book Blog
Browsing all 6 articles
Browse latest View live

Sprintf() Tip

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...

View Article


PHP & Ampersand: Passing by Reference

The following PHP Reference excerpt is from pages 20-21. & – Pass by Reference References allow two variables to refer to the same content. In other words, a variable points to its content (rather...

View Article


Quick Tip: getcwd() for Contents of Current Directory

The getcwd() function is short for ‘GET Current Working Directory’. This can easily be combined with the scandir() function which returns an array of all the files and directories inside the specified...

View Article

Sprintf() Tip

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...

View Article

PHP & Ampersand: Passing by Reference

The following PHP Reference excerpt is from pages 20-21. & – Pass by Reference References allow two variables to refer to the same content. In other words, a variable points to its content (rather...

View Article


Quick Tip: getcwd() for Contents of Current Directory

The getcwd() function is short for ‘GET Current Working Directory’. This can easily be combined with the scandir() function which returns an array of all the files and directories inside the specified...

View Article
Browsing all 6 articles
Browse latest View live


Latest Images