PHP | Output of the following statements var_dump(0123 == 123); var_dump('0123' == 123); var_dump('0123' === 123   var_dump(0123 == 123) This will output bool(false) because the leading 0 in 0123 tells the PHP interpreter to treat the …

Last updated 4 years, 7 months ago | 1503 views

Tags:- PHP

PHP | output of $a and $b once this code $a = '1'; $b = &$a; $b = "2$b" executed; Both $a and $b will output a string "21".   Because the statement $b = &$a; sets …

Last updated 4 years, 7 months ago | 1144 views

Tags:- PHP

Codeigniter | List Databases supported By Codeigniter Following Databases are supported by Codeigniter Frameworks: Database Name Drivers to support Codeigniter MySQL MySQL (deprecated), MYSQLI and PDO drivers Oracle oci8 and PDO drivers PostgreSQL Postgre and …

Last updated 4 years, 9 months ago | 2156 views

Tags:- CodeIgniter

Codeigniter | routes  Routing rules are defined in your application/config/routes.php file.    In it, you'll see an array called $route that permits you to specify your own routing criteria. Routes can either be specified using …

Last updated 4 years, 9 months ago | 1336 views

Tags:- CodeIgniter

CodeIgniter | What is helpers | Load helper file Helper is simply a collection of function in a particular category which helps you with tasks. The helper file can be loaded in controller constructor, some …

Last updated 4 years, 9 months ago | 5587 views

Tags:- CodeIgniter

Codeigniter | Set timezone To set default timezone in Codeigniter, you can add the date_default_timezone_set() function in your application/config.php or index.php file. date_default_timezone_set('your timezone');   <?php // India timezone date_default_timezone_set('Asia/Kolkata'); ?>  

Last updated 4 years, 9 months ago | 4287 views

Tags:- CodeIgniter

Codeigniter | SET or GET config variables The config set_item() & item() functions are work for SET and GET a config variable in codeigniter   In Codeigniter, by default, all config variables are located at the “application/config/config.php” …

Last updated 4 years, 9 months ago | 3679 views

Tags:- CodeIgniter

Codeigniter | The default URL pattern In CodeIgniter, URLs are designed to be search-engine and user-friendly. CodeIgniter uses a segment-based approach rather than using a "query string" based approach. http://www.example.com/user/edit/rakesh The default URL pattern in …

Last updated 4 years, 9 months ago | 2184 views

Tags:- CodeIgniter

Codeigniter | Types of error logging There are three message types in Codeigniter: Error Messages These are actual errors, such as PHP errors or user errors. Debug Messages These are messages that assist in debugging. …

Last updated 4 years, 9 months ago | 1291 views

Tags:- CodeIgniter

HTML | What is HTML HTML is a web language that stands for HyperText Markup Language. It was created by Berners-Lee in late 1991. HTML is the standard markup language for creating web pages that …

Last updated 4 years, 9 months ago | 1352 views

Tags:- HTML

Codeigniter | Include image, CSS, and js file In Codeigniter, we need to load URL helper in the controller and then use the base_url() function to load the resources. // loading script <script type='text/javascript' src="<?php …

Last updated 4 years, 9 months ago | 6033 views

Tags:- CodeIgniter

JQuery | Select dropdown item based on the value Change the selected option by value on the select box with jQuery is common nowadays. So let us have a select element with the list of …

Last updated 4 years, 9 months ago | 1768 views

Tags:- JQuery JavaScript

PHP | Get URL with Parameter To get the full URL of a current page with GET parameters, we use the $_SERVER global variable. We need the current URL to perform different types of works. For …

Last updated 4 years, 10 months ago | 6029 views

Tags:- PHP

CSS | Fluid typography Changing size of text, image, div or any html element automatically without using any jquery or media queries. It is a fluid type technique that doesn't require any JavaScript. Using viewport …

Last updated 4 years, 10 months ago | 1306 views

Tags:- CSS

SQL | IN operator with PHP Array In this article we will use PHP Array with SQL IN operator. SQL IN operator allows us to specify multiple values in where clause. So in this article …

Last updated 4 years, 10 months ago | 1911 views

Tags:- PHP PHP-MySQL