Some PHP functions and code snippets useful for PHP Programmers and scripts.
New PHP Code Snippets might be added soon.

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which attribute specifies the HTTP method (GET, POST) used to submit the form-data?
action method value
<form action="script.php" method="post"> ... </form>
Which CSS property allows to add shadow to boxes?
background-image box-shadow border-radius
#id {
  background-color: #bbfeda;
  box-shadow: 11px 11px 5px #7878da;
}
Which function removes the first element from an array?
pop() push() shift()
var fruits = ["apple", "apricot", "banana"];
fruits.shift();
alert(fruits.length);           // 2
Indicate the function that can be used to check if a PHP extension is instaled.
function() filetype() extension_loaded()
if(extension_loaded("PDO") === true) echo "PDO is available."
PHP Code Snippets

Last accessed pages

  1. Read Excel file data in PHP - PhpExcelReader (75281)
  2. Nested Objects - Traverse object (654)
  3. Dynamic variables in JavaScript (12893)
  4. Get the value of the selected /checked checkboxes in a form (42595)
  5. Contact page - CoursesWeb (40731)

Popular pages this month

  1. Making DIV Contents Scroll Horizontally, with multiple Div`s inside (423)
  2. Contact page - CoursesWeb (405)
  3. Tabs effect with CSS (404)
  4. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (170)
  5. Insert, Select and Update NULL value in MySQL (157)