debug php with print
<?php
function console_log($output, $with_script_tags = true) {
$js_code = 'console.log(' . json_encode($output, JSON_HEX_TAG) .
');';
if ($with_script_tags) {
$js_code = '<script>' . $js_code . '</script>';
}
echo $js_code;
}
Also in PHP:
- ddev laravel setup
- array kley exists php
- check session in blade laravel
- cacert file_get_contents openssl
- control string length php
- How do I clear laravel cache online?
- date formats in php
- check string exist in php
- don't show php errors
- PHP message: PHP Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Eav\Model\Attribute\Data\Text::validateLength() must be of the type string, null given
- after for each loop in php
- PHP header(refresh)
- create a random string in php
- curl_init() in php
- base url in php
- create database seeder in laravel
- composer install laravel 7 not installing
- php remove spaces from string
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 20480 bytes) in phar:///usr/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php on line 64
- browser cache laravel
- client's ip address in php
- autoload file in laravel
- display error on screen
- drupal/core 8.9.7 requires ext-dom * -> the requested PHP extension dom is missing from your system. composer install