Download presentation
Presentation is loading. Please wait.
1
Introduction to PHP Part 1
Chapter 1 Introduction to PHP Part 1
2
strings.php Script 1.6 on page 19
ch01\strings.php
3
concat.php Script 1.7 on page 21
ch01\concat.php
4
numbers.php Script 1.8 on page 24
ch01\numbers.php
5
Arithmetic Operations
Operator Meaning + $c = $a + $b; - $c = $a - $b; * $c = $a * $b; / $c = $a / $b; % $c = $a % 10; ++ $a++; -- $a--; += $a+=$b; *= $a*=2; .= (strings) $c = $a . $b;
6
number_format number_format
7
constants.php Script 1.9 on page 27
ch01\constants.php
8
Code Meaning \” Double quotation mark \’ Single quotation mark \\ Backslash \n Newline \r Carriage return \t Tab \$ Dollar sign
9
quotes.php Script 1.10 on page 30
ch01\quotes.php
10
Debugging Make sure you’re always running PHP scripts through a URL.
Know what version of PHP you’re running.
11
Debugging Make sure display_errors is on.
CTRL+F (Edit->Search) display_errors Take a break!
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.