well, as such there is no Widget in php. You need to write your own widget program if you are interested to develop. You must be aware of wordpress built on php plateform and that uses widget extensively :)
You can do this: <?php if ( $word === strrev( $word ) ) { echo "The word is a palindrome"; } else { echo "The word is not a palindrome"; }
Ratinonal program in php
$n = 10*(1+10)/2;
We can write php extension is many way... .php , .php5, .php4
Well if you know php then you can write your own algorithm php syntax is <?php //open php tag $num = 1; $num2 = 2; $total = $num + $num2; echo $total; ?> //close php tag
A host that allows you to write in PHP
PHP is in interpreted language, and ships with one, however PHP itself is a program language and not an interpreter.
<?php echo "Hello world"?>
Try the triangle program on a search engine. Replace numbers with stars and that should do the trick
< ?php // This is an example of comment in PHP /* This is another example of comment in PHP and we can write comments in multiple lines using this method */ ? >
This particular file is a file specific to the PHP program or script you are using. It is not a "php system file".