Site menu

CodeCook.io

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

PHP - If condition do

Depending if condition is true execute section of code.

0
442
  • Share on Facebook
  • Share on Google+
  • Share on Twitter

documention

if({{condition}})
    {{true_code}}
php

Notes

last update: Nov. 14, 2014

Advertisement

This project is hosted on DigitalOcean, try it and support us

Related concept

  • Inline conditional
  • Break out of loop
  • If, else if, else
  • If else

Other language

  • Python

Random task

  • Convert String to int
  • key value list all values
  • Test whether AngularJS element is visible in Jasmine test
  • Get first element array
  • Enumeration of choices
  • Blog
  • About
  • License