By default, the selected checkboxes value is posted on form submission to the server-side. But if you want to get the selected checkboxes values without form submission, jQuery is the best option. The selected checkboxes value can be get easily using jQuery.

By: CodexWorld Sep 20, 2018
PHP

The preg_replace() function performs a search with the regular expression and replaces the matches with specified replacement. Use preg_replace() function to remove special characters from string in PHP. Removes the special characters from string except space with regular expression using PHP.

By: CodexWorld Sep 13, 2018
PHP

The string comparison can be easily done by the PHP built-in function called strpos(). The strpos() function in PHP, is the easiest way to check if a string contains a specific word or substring. Use strpos() function to check whether a specific word exists in the given string.

By: CodexWorld Aug 26, 2022
PHP

Human readable file size makes easier to read the file size and converts a number of bytes in the largest unit. To display file size in human readable format, you need to convert it to KB, MB, GB, TB, etc. Generally, the file size is stored in bytes which can be easily converted to kilobyte, megabyte, gigabyte, etc format.

By: CodexWorld Aug 28, 2018
PHP

The website availability status can be checked from the PHP script and notify about the downtime if the website is down. The cURL is the easiest option to check website availability with PHP. If you want to check the website’s server status, perform a cURL request to check if the website is available or online.

By: CodexWorld Aug 6, 2018
PHP

The array_map() and array_filter() function can helps to filter empty elements recursively from multidimensional using PHP. Use the array_map() function with array_filter callback to filter each array in multidimensional array.

By: CodexWorld Oct 2, 2023
PHP

When you want to render web page content based on the specific condition, the content needs to be loaded dynamically. In that case, you need to add or remove HTML element from the web page content. Use preg_replace() function to remove HTML tag or element by class or id in PHP.

By: CodexWorld May 28, 2018

Instagram Application is used for many purposes, commonly is used to authenticate with the Instagram account. To implement Login with Instagram on the web application, you need to register an application in the Instagram Developer panel. You will get the Client ID from Instagram App, it will be required for authenticating your web application with Instagram.

By: CodexWorld May 1, 2018

If you want to implement conditional code based on the class or method, you need to get current class and method name in CodeIgniter. Using the Router Class in CodeIgniter, you can easily get the current controller and method name. The Router class helps to parses URIs and determines routing.

By: CodexWorld Apr 25, 2018
keyboard_double_arrow_up