DID YOU KNOW?
#PHP wasn’t aimed to be used as a programming #language by #Rasmus_Lerdorf. It was only developed to manage his personal #website. The official version of PHP was then released in 1997 after many days of #hard_work and #beta testing

#dc comics#batman#dc#bruce wayne#dick grayson#tim drake#batfamily#batfam#dc fanart


seen from Russia

seen from China

seen from United States
seen from China
seen from Peru

seen from Canada

seen from United States
seen from United States
seen from China
seen from China
seen from Ukraine

seen from United States
seen from United States

seen from United States

seen from Malaysia
seen from United States
seen from United States

seen from United States
seen from Singapore
seen from China
DID YOU KNOW?
#PHP wasn’t aimed to be used as a programming #language by #Rasmus_Lerdorf. It was only developed to manage his personal #website. The official version of PHP was then released in 1997 after many days of #hard_work and #beta testing
PHP for Beginners A Step-by-Step Guide to Programming PHP
PHP for Beginners A Step-by-Step Guide to Programming PHP
PHP for Beginners A Step-by-Step Guide to Programming PHP
ABOUT THE COURSE PHP is world’s most used server language. The instructor with 11+ years of experience makes PHP learning trouble free.
What Will I Learn?
Students will be able to start programming using PHP with confidence
Understand Operators in PHP
Implement Functions
Use Variable Scope, Boolean Values and Conditionals
Understand IF…
View On WordPress
Weakly Typed
My first choice is not PHP either because it is weakly typed.
PHP Shorthand If / Else
Berikut adalah contoh shorthand atau cara singkat untuk sebuah kondisi di php.
Deklarasi Basic True / False
$is_admin = ($user['permissions'] == 'admin' ? true : false);
Kondisi untuk defined variabel
echo 'Welcome '.($user['is_logged_in'] ? $user['first_name'] : 'Guest').'!';
Kondisi untuk defined variabel berdasarkan value
$name = 'Joni'; echo 'Welcome '.($a=='Joni' ? $name : 'Guest').'!';
unprint_r
I recently found myself in a bit of a pickle. I had deleted a data file that I had been working on while creating a web utility. It wasnt the end of the world, but it would be a good hours work putting all the data back in and i didnt really want to do that.
I did however have a debug dump in a file that I had obtained by doing a
print_r($data);
in my code. This is regular, but is generally a one way process, there isnt a built in unprint_r in php. However stackoverflow.com and its many brilliant users to the rescue.
I found this question
http://stackoverflow.com/questions/7025909/how-create-an-array-from-the-output-of-an-array-printed-with-print-r/28687593#28687593
and this answer
http://stackoverflow.com/a/28687593/6244
The code got me completely sorted very quickly, and I put it all together onto github
https://github.com/tobya/pprint_R