


How to remove character from a string?
Removing characters from a string is most common and frequent activities in PHP. For example, you have a long name, but your system does not allow to show more than 6 characters of your name. In this case, you need to keep only first 6 characters from the name. To solve this issue we use [...]
PHP function to extract components from an URL
You want to extract the protocol, domain name, path, or other significant component of a URL. Use the parse_url() function to split the URL into constituent parts automatically. The parse_url() function is one of PHP's most helpful URL manipulation functions. Ita takes a parameter of a Uniform Resource Locator (URL), and splits it into its [...]
How to get header footer and sidebar in wordpress
Today I am going to share three mostly used WordPress function about how to load header, footer and sidebar in your WordPress theme. Each WordPress theme contain 3 common files for header(header.php), footer(footer.php) and sidebar(sidebar.php). To load that files WordPress have 3 dedicated functions. - Load the header: Header section contains basic elements like logo, [...]