2012-06-06, 04:17:01
I randomly found this also in the php.net docs for str_getcsv
These 2 features would be awesome, header and description support.
Also it would be nice if this plugin supported function calls with folder, so it can be used multiple times as a component or a inline shortcode.
Code:
xoneca at gmail dot com 26-Nov-2011 09:26
Note that this function can also be used to parse other types of constructions. For example, I have used to parse .htaccess AddDescription lines:
AddDescription "My description to the file." filename.jpg
Those lines can be parsed like this:
<?php
$line = 'AddDescription "My description to the file." filename.jpg';
$parsed = str_getcsv(
$line, # Input line
' ', # Delimiter
'"', # Enclosure
'\\' # Escape char
);
var_dump( $parsed );
?>
The output:
array(3) {
[0]=>
string(14) "AddDescription"
[1]=>
string(27) "My description to the file."
[2]=>
string(12) "filename.jpg"
}
These 2 features would be awesome, header and description support.
Also it would be nice if this plugin supported function calls with folder, so it can be used multiple times as a component or a inline shortcode.