Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php const

<?php
    define('CONSTANT', 'Hello world !');
    const CONSTANT = 'Hello world !';
    const NEW_CONSTANT = CONSTANT.' And beyond...';
    const ANIMALS = array('dog', 'cat', 'ant');
    define('ANIMALS', array('dog', 'cat', 'ant'));
?>
 
PREVIOUS NEXT
Tagged: #php #const
ADD COMMENT
Topic
Name
2+3 =