Skip to content

Explode a string to array with key => value

I have string is: How Can I convert from $string to an array with key => value. Updated: @Mark Baker my php version is 5.4 so I cannot test your code, thanks @Aleatoric I’m use this code, but the array return some space character on key and value: I have use trim() to strips all space, but can you te…

Composer loading from cache

i ran in a problem using composer for installing/uninstalling some dependencies in laravel which coming back after deleting them from composer.json and deleting their vendor folder, i initially used dflydev’s markdown package but now i wanted to change it to michelf’s php-markdown, but i cant unin…

FPDF – Inline bold text

I am trying to create a PDF from PHP and for legal reason we need to make part of our disclaimer BOLD and the disclaimer needs to be outlined. My current code uses: if(isset($_POST[‘optout’]) &&…

Get all terms in a custom WordPress Query?

I know how to get all of the WordPress terms, but I need a “filtered” down version of the results. Is it possible to get all of the terms that are in the result of a WordPress query? I have this query …

How to change a ‘php.ini’ setting in a PHP file

I am installing vtiger6 on a client’s server. I don’t have access to the php.ini file. I have tried to change some php.ini setting through my index.php file. Some settings work fine: But I am not able to set up the following: And also I need to change the following too. I don’t know whether …