Extended behaviour of explode() and str_replace() in PHP
PHP provides various built-in functions to make our server development experience easier. This article is to check some unfamiliar behaviours of explode()
and str_replace()
functions.
PHP provides various built-in functions to make our server development experience easier. This article is to check some unfamiliar behaviours of explode()
and str_replace()
functions.
The views module allows administrators and site designers to create, manage, and display lists of content. Each list managed by the views module, and the output of a view is known as a "display".
Hidden elements can be easily created on a Drupal form. When the form is submitted, $form_state
variable seems to be holding the value of this element in various hooks, "form_alter", "validate", etc.
Note that if you have an ajax call or a jquery code which assigns or modifies the value of the hidden element, this value will not be sent when the form is submitted. For eg, An hidden element is created from -
Mysql provides a functionality to create a backup of your database using mysqldump
. It also enable the user to provide an option --ignore-table
which skips the table from the backup process. The doc from the MySQL says -
--ignore-table=db_name.tbl_name
Datatable is a jQuery plugin which provides a great interface when it comes to display a table with quite a large number of rows. It helps in paging, sorting and several functionalities with only installing a simple plugin in our application. This page is to know how searching for a string can be done using datatable search filter.
Consider the datatable below -
ImageMagick is a popular tool used for creating and modifying images. Check below to know how ImageMagick and Imagick on Ubuntu is installed and configured.
Use a simple apt-get
to install this as it is already included in the base repository.
sudo apt-get install imagemagick
Use apt-get to install imagick -
Imagick is a PHP extension which makes use of ImageMagick library and is used to create and modify images in our application. This article is to know how Imagick on windows server is installed and configured.
PHP 7 is considered to be significantly faster than PHP5. Several improvements have been added which need to be made in the snippets using the latter version as it tends to silently fail due to the latest code behaviour.