Sometimes you need to disable or enable some elements in your document and jQuery makes this task easy. All you have to do is to set disabled attribute to "disabled".
In order to enable any disabled element you need to set the disabled attribute to empty string or remove it entirely like in the code below.
Let's say we have a string:
We want to break down each number into an array called $num_array.
In PHP we could do this:
The PHP implode function would produce the following:
Then let's say we wanted to piece it back into the original string. We could just do this in php:
$string = implode(':',$explode_array);
Since i changed the path for a friend's blog, i need update the files and images path URL in all previous posts.
The best way i found is use MySQL REPLACE function to replace string in hundreds of records. Only need 1 minute.
Here is the SQL query to replace string in database table:
SQL query for mass replace string in wordpress table
Thank you for taking the time to visit my blog! Take a second to peek around and check out some of my previous posts. Of course, I would love to find out what you think as well, so make sure to comment. See you around!