Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala

PHP - recipes

  • {{ item.name }}
  • Append item to array
  • Array length
  • Block comment
  • Break out of loop
  • Check variable is defined
  • Class definition
  • Concatenate two arrays
  • Counter loop
  • Do loop while a condition is true
  • For each loop
  • Get last element of array
  • Get random item from array
  • Hello world
  • If condition do
  • If else
  • If, else if, else
  • Increment variable by one
  • Inline conditional
  • Key value key existence test
  • Loop until condition is true
  • Loop while condition is true
  • Repeat string
  • Sort list of numbers
  • String concatenation
  • Test for expression in string
PHP logo

PHP

documentation url
http://php.net/docs.php

PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. As of January 2013, PHP was installed on more than 240 million websites (39% of those sampled) and 2.1 million web servers. Originally created by Rasmus Lerdorf in 1994,the reference implementation of PHP (powered by the Zend Engine) is now produced by The PHP Group. While PHP originally stood for Personal Home Page, it now stands for PHP: Hypertext Preprocessor, which is a recursive acronym. -wikipedia.org

  • Blog
  • About
  • License