NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

==>php - Server side scription language
==>php - Hypertext Preprocessor - executes and return output in the form of html - Rasmus ledorf (xml . odf , csv . flash , text)
==>basic syntax : <?php ?> terminate code with ;
----------------
==>comments : 1) not executed by compiler 2) let other know what's the code for ?
// , # , /* */
==>Sensitivity : all keywords , classes , function , user defined function are not case sensitive but variables are case sensitive.
==>variables : Variables are "containers" for storing information.php variables need not to declare(automatic)
$value = "fdfdf";
===>Scop of varible .. local , global , static ==> global $y; or $GLOBALS['y']
=>A variable declared within a function has a LOCAL SCOPE and can only be accessed within that function:
=>A variable declared outside a function has a GLOBAL SCOPE and can only be accessed outside a function:
=>Normally, when a function is completed/executed, all of its variables are deleted. However, sometimes we want a local variable NOT to be deleted. We need it for a further job.
To do this, use the static keyword when you first declare the variable:
----------------------
==output statements ==
1) echo 2) print --
===>- echo is faster that print
- echo does not have return value , print returns 1
- echo can user multiple parameter print could not
Ex 1: print "<h2>PHP is Fun!</h2>"; /* Ex 2 */ echo "<h2>PHP is Fun!</h2>";
---------------------------------
--Datatypes in php --
1)String 2)Integer 3)Float (floating point numbers - also called double)
5)Boolean 6)Array 7)Object 8)NULL 9)Resource

String is sequence of characters in single or double quotes
Integer is any non decimal number
array single variable has multiple values
float - decimal number
object -real time entities which has state and properties
$cars = array("Volvo","BMW","Toyota");
$herbie = new Car(); //car is class
null -NULL
If a variable is created without a value, it is automatically assigned a value of NULL.














     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.