PHP Training Institute in Ambala ! Battra Computer Centre
-
Upload
jatin-batra -
Category
Education
-
view
6 -
download
1
Transcript of PHP Training Institute in Ambala ! Battra Computer Centre
![Page 1: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/1.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
BATRA COMPUTER CENTREISO CERTIFIED 9001:2008
![Page 3: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/3.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
PHP is a computer scripting language Originally designed for producing dynamic web pages Appeared in 1995 PHP Group is responsible for the language, no formal
specification Free Software Runs on Most Operating System and platforms URL: http://www.php.net
![Page 5: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/5.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
PHP has quite easy syntax, if you are familiar with any c-type language
It has all the same structure that you are familiar with other programming languages
PHP is designed to output to browser, but it is possible to do also CLI apps.
![Page 6: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/6.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
Variables in PHP are represented by a dollar sign PHP supports eight types: -- Boolean, integer, float, double, array, object, resource and null
![Page 7: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/7.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
Case-sensitivity Start witg letter or_ After that you can have numbers, letters and_
![Page 8: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/8.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
You cannot alter the value of constant after declaration. --define (constant, “value”) ; --print CONSTANT ;
![Page 9: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/9.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
PHP has lot of predefined variables Also predefined constant: - ____LIN E___ - ____FILE____ - ____FUNCTION___ - ____CLASS____ - ___METHOD___ See. http://.php.net/manual/en/language.constants.predefined.php
![Page 10: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/10.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
<?pp
$a = “Pekka”;
Print “My name is “ . $a;
/>
![Page 11: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/11.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
<? Php$a = “Pekka”;Function Test () { print $a ;}Print “My Name iis “ ;Test () ;?>
![Page 12: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/12.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
<? Php$a = “Pekka”;Function Test () { global $a: print $a ;}Print “My Name iis “ ;Test () ;?>
![Page 13: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/13.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
If, else, elseif, switch While, do-while, for Foreach Break, continue
![Page 15: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/15.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
Single quoted: ‘this is a $ variable’ Double quoted: ‘this is a $variable” Heredoc:
-- $str = <<<EOD -- $ Example of string -- spanning multiple lines -- using heredoc syntax. -- EOD;
![Page 16: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/16.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
$mj = “moi” ; Print $mj [0]; $mj [0] = ‘x’ ; Print $mj; $mj = $mj . “hei” ; Print $mj; $mj .= “ Terse”; Print $mj;
![Page 17: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/17.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
A lot of functions… - http://www.php.net/manual/en/ref.strings.php
![Page 18: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/18.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
Every Statement ends with ;
-- $a = 5 ; -- $a = function () ; -- $a = ( $b = 5) ; -- $a++; ++$a; -- $ a += 3 ;
![Page 19: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/19.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
Arithmetic: +,-,*,% Setting variable: = Bit: &, |, ^, ~, <<, >> Comparison: ==, ===, !=, !==, <, > <=, >=
![Page 38: PHP Training Institute in Ambala ! Battra Computer Centre](https://reader036.fdocuments.us/reader036/viewer/2022070519/58ecd0bb1a28ab514f8b4633/html5/thumbnails/38.jpg)
Ph. No.: 8222066670, 4000670
Email: [email protected]
Website: www.batracomputercentre.com
ADDRESS:
SCO -15, Dayal Bagh,
Near Hanuman Mandir
Ambala Cantt-13300, Haryana
Ph. No.: 9729666670, 8222066670 &0171-4000670
Email ID: [email protected]
Website: www.batracomputercentre.com