How To Learn PHP
Since PHP is mainly used to output HTML, the whole skillset is a bonus. Often, a team has members which have varied strengths. But, none should be totally lost when looking at the code. A designer should know where to edit his html and the web developer should have a grip on everything he sees.
PHP code exists between a starting and ending tag. The staring tag is <?php and the ending tag is ?>. Create a file called first.php and write the code below into the file. Then, save it and open it in a browser.
echo “PHP is fun!”;
echo ‘Isn’t it?’;
PHP is fun!
The codes below show how to create a link.
echo ‘<a href =”myfile.php”>Click Here</a>’;
echo “<a href =\”myfile.php”>Click Here</a>\”;
//Yields: Click Here