With opening tag, no closing tag
<?php
public function __construct(){
parent::__construct();
}
With both opening/closing tag
<?php
public function __construct(){
parent::__construct();
}
?>
No opening/closing tag
public function __construct(){
parent::__construct();
}
No opening/closing tag, full Class syntax
class Foo extends Bar
{
public function __construct(){
parent::__construct();
}
}
With opening/closing tag, full Class syntax
<?php
class Foo extends Bar
{
public function __construct(){
parent::__construct();
}
}
?>
Partial code
function Dbug() { }
function inspect($var,$forceType="",$bCollapsed=false) {
...
// Empty constructor for CodeIgniter
function Dbug() { }
// Rename the original constructor
function inspect($var,$forceType="",$bCollapsed=false) {
...
With opening tag, no closing tag
{% codeblock lang:php %}
{% endcodeblock %}
No opening/closing tag
{% codeblock lang:php %} public function __construct(){ parent::__construct(); } {% endcodeblock %}
No opening/closing tag, full Class syntax
{% codeblock lang:php %} class Foo extends Bar { public function __construct(){ parent::__construct(); } } {% endcodeblock %}
With opening/closing tag, full Class syntax
{% codeblock lang:php %}
{% endcodeblock %}
Partial code
{% codeblock lang:php %} function Dbug() { }
function inspect($var,$forceType="",$bCollapsed=false) { ... {% endcodeblock %}
{% codeblock lang:php %} // Empty constructor for CodeIgniter function Dbug() { }
// Rename the original constructor function inspect($var,$forceType="",$bCollapsed=false) { ... {% endcodeblock %}