At times we will need to create a link without the underline so that it fits better with our text. Its fairly simple here goes:
PHP Programmer
vs.
PHP Developer
Simply add this style to the css stylesheet for anchor tags to be displayed without the underline or to the link code:
<a href=”#” style=”text-decoration:none;”>Link</a>
These decoration values dont work with all browsers but are worth knowing:
none, underline, overline, line-through or blink
Some of you may be looking for a simple way to write a PHP link, well here goes:
echo ‘<a href=”‘. $linkVar .’” style=”text-decoration:none;”>’. $nameVar .’</a>’;
or
echo ‘<a href=”#” style=”text-decoration:none;”>My Link</a>’;
Basics
This is a simple tutorial on how to create a simple PHP Hello World script. This basic knowledge will get the novice PHP Programmer get started with building their first PHP script. First off we will need to create the delimiters for PHP as follows:
<?php
……
?>
This will allow you to paste the code so that the server can begin translating what is between the PHP delimiter tags. Every PHP programmer is very familiar with these delimiters and uses them in most or all of their PHP development.
Our next step will show you how to “Print” or echo the PHP Hello World Text to the browser page.
<?
echo “Hello, World!”;
?>
This is what your output will look like:
Hello, World!
That is it! Our PHP Programmer has shown you how to create a simple Hello World PHP script. Now go try it out on your server and come back and leave a comment as to how it went or other suggestions that you may have.
Basics