Sometimes we need to get values through the query string in the URL on the browser address bar. But the question is how to get these query string values in JavaScript or jquery because we need them on the client-side.
Tag » Function
site_url() and base_url() in CodeIgniter, Difference and when to Use
site_url() and base_url(), both are useful functions in CodeIgniter. However, developers get confused about what is the difference between them and when to use site_url() or base_url(). In this article, we’re explaining both and use scenarios.
Using CodeIgniter Transactions to Insert Records in Multiple Tables
There are times when you want to insert records in multiple tables. At the same time, you also want to ensure consistency. CodeIgniter simplifies MySQL transactions to perform Database operations on either all or none basis.
3 Ways – Convert a PHP Object to an Array and Vice-Versa
Objects and arrays are essential parts of our day to day programming. PHP object to array and array to object conversions are quite common requirements. We are mentioning three ways that you can use to convert PHP object to an array.
3 Ways – Multidimensional Array to Object Conversion
There are few ways to convert a multidimensional array to object. If you’re a PHP developer then you have noticed that array to object conversion as a common need. So we’re mentioning three methods to convert a multidimensional or simple associative array to object. Like you, we’re also not a fan of typing braces and […]
5 Ways – Get Array Values by Matched or Excluded Keys Set
In this PHP tutorial, I’m providing 5 functions to get array values by keys. We have an associative array and an indexed array of few keys. Further, we want to get an array that has matched keys from the indexed array and corresponding values from the associative array. Conversely, we might wish to return an array with […]
Debugging in WordPress – Writing Custom PHP Data or Log Messages
WordPress has a configurable debugging system that allows us to display as well as log PHP errors, notices, and warnings. Besides that, sometimes we need to debug the code by writing custom PHP data or messages in a log file.
3 Ways to Insert a Page Break or Split a Post into Multiple Pages
Sometimes we wish to insert a page break in a lengthy post. In other words, splitting a post into multiple pages along with displaying links to the previous/next part of the post. It’s a good idea to break a long page or single post into multiple pages.
Create LD-JSON Breadcrumb Structured Data using Yoast SEO
LD-JSON Breadcrumb Structured Data is a format to let search engines understand the website hierarchy better. You can create LD-JSON Breadcrumb Structured Data using Yoast SEO plugin in WordPress website. After custom breadcrumb navigation, create LD-JSON Rich Data.
Custom Breadcrumb Navigation using Yoast SEO Plugin
Yoast SEO is one of the most popular WordPress SEO plugins. The plugin offers a breadcrumb navigation feature to put on your WordPress website. However, sometimes we wish to grab these breadcrumb items in an Array.