answersLogoWhite

0

// example of 1..12x12 table

for($i = 1; $i <= 12; $i++)

{

for($j = 1; $j <= 12; $j++)

{

print ($i * $j) ." ";

}

print "\n";

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

How do you check which extensions are dynamically loaded in PHP?

AnswerTo get the list of currently loaded extensions within a PHP program. Use get_loaded_extensions() function.To check what extensions are loaded by PHP on a given server, type this on the command line:php -mHere is a php script that will list the loaded extensions in a table. Save this file as phpext.php and place it on your website. Go to this file in your web browsers and see a list of loaded extensions:


How do you write themes in PHP?

You can use Cascading Style Sheets (CSS) to create website themes for your PHP website.


Write a PHP program to check whether the number is palindrome or not?

This program only suits PHP. If you want a proper one try C program for it available on web &lt;body&gt; &lt;?php if(isset($_POST['submit'])) { $text = $_POST['text']; $string = mysql_real_escape_string($text); $invert = strrev($string); if($string == $invert) { echo "&lt;br&gt;Given number is a palindrome!!"; } else { echo "&lt;br&gt;Given number is not a palindrome!!"; } } ?&gt; &lt;form method="post"&gt; &lt;input type="text" name="text" id="text" /&gt; &lt;input type="submit" name="submit" value="Submit" id="submit" onclick="&lt;?php $_SERVER['PHP_SELF']; ?&gt;" /&gt; &lt;/form&gt; &lt;/body&gt;


How do you embed PHP code in C code?

PHP and C are two different programming languages that cannot directly interact with eachother. You can have a program made with C call a PHP script, using its output (an indirect interaction), but there's no way to "embed" PHP into C code.


Is PHP a compiler or interpreter?

It is normally interpreted by another computer program. However subsets of the language can be compiled.

Related Questions

Is there widget in php?

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 :)


Write a PHP program to check whether the string is palindrome or not?

You can do this: &lt;?php if ( $word === strrev( $word ) ) { echo "The word is a palindrome"; } else { echo "The word is not a palindrome"; }


How do you print an HTML table using PHP?

It is really simple to print an HTML table in PHP, all you have to do is the following: &lt;?php print "&lt;table&gt;"; print "&lt;tr&gt;"; print "&lt;td&gt;hello&lt;/td&gt;"; print "&lt;/tr&gt;"; print "&lt;/table&gt;"; ?&gt;


Where can I find free php codes?

Ratinonal program in php


Write a program to compute the sum of first ten integer numbers in PHP?

$n = 10*(1+10)/2;


What is php extension?

We can write php extension is many way... .php , .php5, .php4


How do you write a php algorithm?

Well if you know php then you can write your own algorithm php syntax is &lt;?php //open php tag $num = 1; $num2 = 2; $total = $num + $num2; echo $total; ?&gt; //close php tag


What is PHP enabled host?

A host that allows you to write in PHP


Is php an interpretor?

PHP is in interpreted language, and ships with one, however PHP itself is a program language and not an interpreter.


How do you write hello world in PHP?

&lt;?php echo "Hello world"?&gt;


How do you write a program to print numbers from star one and next line star two in php?

Try the triangle program on a search engine. Replace numbers with stars and that should do the trick


How do you check which extensions are dynamically loaded in PHP?

AnswerTo get the list of currently loaded extensions within a PHP program. Use get_loaded_extensions() function.To check what extensions are loaded by PHP on a given server, type this on the command line:php -mHere is a php script that will list the loaded extensions in a table. Save this file as phpext.php and place it on your website. Go to this file in your web browsers and see a list of loaded extensions: