Skip to main content

Introduction to PHP

PHP: Hypertext Preprocessor is a general-purpose programming language originally designed for web development. It was originally created by Rasmus Lerdorf in 1994; the PHP reference implementation is now produced by The PHP Group. Read More
Stable release: 7.3.11 / October 24, 2019; 1 day ago
Preview release: 7.4.0 RC4 / October 18, 2019; 7 days ago
Implementation language: C (primarily; some components C++)
Developer: The PHP Development Team, Zend Technologies
Typing discipline: Dynamic, weak since version 7.0: Gradual
Designed by: Rasmus Lerdorf

The php code can be embedded into html code just as an example given below -
basic.php

<html>
<head>
<title> Basic Example </title>
</head>
<body>
<?php
echo "This is php code embedded into html";
?>
</body>
</html>

similarly html code can be embedded in php code as follows -

example.php
<?php

echo "<b>"."using html in php"."</b>";

?>

Comments

Popular posts from this blog

PHP program to convert word to digit

<?php function word_digit($word) {     $warr = explode(';',$word);     $result = '';     foreach($warr as $value){         switch(trim($value)){             case 'zero':                 $result .= '0';                 break;             case 'one':                 $result .= '1';                 break;             case 'two':                 $result .= '2'; ...

PHP script to delete a specific value from an array using array_filter() function

< ?php $colors = array('key1' => 'Red', 'key2' => 'Green', 'key3' => 'Black'); $given_value = 'Black'; print_r($colors); $new_filtered_array = array_filter($colors, function ($element) use ($given_value) {      return ($element != $given_value); }       print_r($filtered_array);       print_r($new_filtered_array); ?>