If you are a C/C++ programmer, then you know that functions can not return more than one value. To over come this, they use Call by Reference – where address of the variables is passed, hence whenever the value in the passed address changes, the value of the actual variable changes without anything being returned. [...]
Today lets see these 4 basic things:1. The classic “Hello World” program.2. Comment system in PHP.3. Concatenation of Strings.4. Addition of Numbers. Classic “Hello World” program Program to output simple string 1 2 3 <?php echo "Hello World"; ?> Comments: 1 // This is single line comment 1 # This is also a single line [...]
We can embed php inside html tags and html tags inside php codes, but whatever it is – your php file name must end with a .php extension, so that the parser can identify that the file contains php code and it must also look for <?php and ?> codes inorder to recognise the codes [...]
Make sure that you turn on the Wamp if you are on a PC and Mamp if you are on Mac. PC users can access their web files using the URL http://localhost/ Mac users can access their web files using the URL http://localhost/~yourUserDirectory yourUserDirectory is the user account name of your Mac computer using which [...]
These are the official websites and your goto place if you want to know anything about these technologies. They have a detailed documentation and large community of users who are always willing to help. Note: Full Form of PHP Earlier PHP was called “Personal Home Page”. Now PHP is “PHP: Hypertext Preprocessor”. Apache: httpd.apache.org PHP: [...]