110 likes | 229 Vues
This chapter provides a comprehensive introduction to strings in PHP, exploring how to manipulate and combine them using various functions. Learn to format numbers and understand constants while enhancing your coding skills. It includes practical scripts with detailed explanations and URLs for deeper insights into the PHP functions used. Additionally, essential debugging practices are discussed to ensure your PHP scripts run smoothly, including how to check your PHP version and set `display_errors` for easier troubleshooting.
E N D
Chapter 1 Introduction to PHP Part 1
strings.php • Script 1.6 on page 19 • http://cscdb.nku.edu/csc301/frank/ch01/strings.php • ch01\strings.php
concat.php • Script 1.7 on page 21 • http://cscdb.nku.edu/csc301/frank/ch01/concat.php • ch01\concat.php
numbers.php • Script 1.8 on page 24 • http://cscdb.nku.edu/csc301/frank/ch01/numbers.php • ch01\numbers.php
number_format • http://php.net/ • number_format
constants.php • Script 1.9 on page 27 • http://cscdb.nku.edu/csc301/frank/ch01/constants.php • ch01\constants.php
constants.php • Script 1.10 on page 30 • http://cscdb.nku.edu/csc301/frank/ch01/quotes.php • ch01\quotes.php
Debugging • Make sure you’re always running PHP scripts through a URL. • http://something.php • Know what version of PHP you’re running. • http://cscdb.nku.edu/csc301/frank/ch01/constants.php
Debugging • Make sure display_errors is on. • http://cscdb.nku.edu/csc301/frank/info.php • CTRL+F (Edit->Search) display_errors • Take a break!