lets say I have an output of var_export:
return array (
'DatabaseMySQL_settings' =>
array (
'absPath' => 'C:/Dolgok/WEBprogramozas/_common/plugins/_framework/core/DatabaseMySQL_settings.php',
'namespace' => '',
'implements' =>
array (
),
'extendsFrom' => 'Framework_setting',
'type' => 'C',
'isAbstract' => false,
),
instead, I want to get this:
return array('DatabaseMySQL_settings'=>array('absPath'=>'DatabaseMySQL_settings.php','namespace'=>'','implements'=>array(),'extendsFrom'=>'Framework_setting','type'=>'C','isAbstract'=>false,),
So there is no newlines and spaces. How to achieve this?
如果您想要的输出仅在以后用于PHP,建议您使用serialize()
代替
在PHP文档注释部分中检查此函数( var_export_min
): http : var_export_min
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.