Latest Entries »

Welcome


Welcome!

Learn and more..

Enjoy, leave comments, and have fun! 😀

 

Contact me at :

My Facebook

My Twitter

 

🙂

BG,

PytByt’s Team.

Advertisements

G-Calendar


Perbedaan perintah ECHO dan PRINT dalam PHP


Pada prinsipnya, perintah echo dan print mempunyai fungsi yang sama yaitu untuk menampilkan hasil atau output ke browser. Tapi pada kenyataannya, echo dan print mempunyai struktur yang berbeda. Perbedaan yang paling menonjol adalah

View full article »


Pada bahasa pemrograman PHP ada sebuah fungsi yang bernama “define”. Fungsi “define” adalah untuk mendefinisikan. Misalnya kita akan mendefinisikan bahwa DODOL adalah “makanan khas Garut”.  Format fungsi define adalah sebagai berikut :

View full article »


 
====================================================
<html>
<head>
<title> Belajar PHP </title>
</head>
 
<body>
 
<?php
 
function ganti()
{
  $bunga = “mawar”;
}
 
$bunga = “melati”;
 
ganti ();
 
print($bunga);
 
?>
 
</body>
</html>
====================================================

Pada contoh program PHP di atas, variabel yang berada di dalam fungsi disebut dengan variabel lokal. Sedangkan variabel yang berada di luar fungsi di sebut sebagai variabel global. itulah sebabnya variabel $bunga di dalam fungsi ganti() berbeda dengan variabel $bunga yang berada di luar fungsi tersebut.

View full article »

What It Means To Be Poor…


One day a father of a very wealthy family took his son on a trip to the country with the firm purpose of showing his son how poor people can be. They spent a couple of days and nights on the farm of what would be considered a very poor family. On their return … View full article »

50 Lessons in Life


1. Life isn’t fair, but it’s still good.

2. When in doubt, just take the next small step.

3. Life is too short to waste time hating anyone.

4. Don’t take yourself so seriously. No one else does.

View full article »

A letter to mom


A mother passing by her daughter’s bedroom was astonished to see the bed was nicely made and everything was picked up. Then she saw an envelope propped up prominently on the center of the bed. It was addressed, “Mom.” With the worst premonition, she opened the envelope and read the letter with trembling hands:

View full article »

Friends


When we first talked to each other
I knew we would always be friends.
Our friendship has kept on growing
And I’ll be here for you to the end.

You listen when I have a problem
And help dry the tears from my face.
You take away my sorrow
And put happiness in its place.

We can’t forget the fun we’ve had
Laughing ’til our faces turn blue.
Talking of things only we find funny
People think we’re insane-If they only knew!

I guess this is my way of saying thanks
For catching me when I fall.
Thanks once again for being such a good friend
And being here with me through it all.

– Rachel Ellis

Kucing dan Sufi


Seorang Sufi ternama bernama ibnu bashad yang hidup pada abad ke sepuluh bercerita, suatu saat ia dan sahabat-sahabatnya sedang duduk santai melepas lelah di atas atap masjid kota kairo sambil menikmati makan malam. Ketika seekor kucing … View full article »

Manfaat Pelihara Kucing


Kelebihan yang tak banyak orang tahu, ternyata kucing juga dapat menjadi hewan yang merawat tuan bahkan keluarga tuannya. Kucing juga meningkatkan kesehatan tuannya dan mengajari … View full article »

LITTLE TONY FROM BROOKLYN PART 1


A teacher asks her class, “If there are 5 birds sitting on a fence and you shoot one of them, how many will be left ?” She calls on little TONY.

He replies, “None, they will all fly away with the first gunshot.”

The teacher replies, “The correct answer is 4, but I like your thinking.”

Then little TONY says, “I have a question for YOU.”

“There are 3 women sitting on a bench having ice cream: One is delicately licking the sides of the triple scoop of ice cream. The second is gobbling down the top and sucking the cone. The third is biting off the top of the ice cream. Which one is married ?”

The teacher, blushing a great deal, replied, “Well, I suppose the one that’s gobbled down the top and sucked the cone.”

To which Little TONY replied, “The correct answer is ‘the one with the wedding ring on’,” but I like your thinking.”

😀

 

part 2 | part 3 | part 4

%d bloggers like this: