Jump to content

I am new in PHP .


pankajdeoria

Recommended Posts

I meant the literal text "hello world" not the program. Why no "hello earth" or something else? Same concept, just different output.

 

The programmer who thought it up decided he wanted to say hello to the world, and not the earth. And since the phrase was so "catchy" it just stuck through out programming history as the basic item to do to show how a program can output data.

 

The gist, someone thought it up and implemented it and it just stuck over time cause people liked it.

Link to comment
Share on other sites

I always thought it was like, "Hello programming world, here comes my obfuscated code!".

 

Here's my favourite implementation

Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook.
Ook! Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook?
Ook! Ook! Ook? Ook! Ook? Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook! Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook.
Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook.
Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook.
Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook!
Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook! Ook. Ook! Ook? Ook! Ook! Ook? Ook!
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook! Ook.

Link to comment
Share on other sites

I don't like the PHP hello world script that much. It's too short.

 

Take a look at the C hello world program for instance:

#include <stdio.h>

int main(int argc, char** argv)
{
printf("Hello World");
}

 

There are a lot of more things you can talk about: The preprocessor and its directives, header files, datatypes (int, char, etc.), functions, function signatures, library functions, pointers, strings (as arrays of chars), arrays as pointers, command line arguments.

Link to comment
Share on other sites

I don't like the PHP hello world script that much. It's too short.

 

Take a look at the C hello world program for instance:

#include 

int main(int argc, char** argv)
{
printf("Hello World");
}

 

There are a lot of more things you can talk about: The preprocessor and its directives, header files, datatypes (int, char, etc.), functions, function signatures, library functions, pointers, strings (as arrays of chars), arrays as pointers, command line arguments.

 

I don't think the point of, "Hello World" is to teach people about programming but to just get something basic up and running.

Link to comment
Share on other sites

I remember the days when I was like "what's a hello world? Why Hello world?"... Good, good times, Wikipedia has a rocket-science explanation about it.

 

I think it should be used just to help people set their environments for programming, but they are more used as examples now...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.