>DansTonCode();

Tous les codes sourcespage 54

PHP
 01 Juillet, 2014 à 05:21
#184
foreach( $d->params->sources as &$source )
{
    $src = current(explode( "/", is_array( $source->source ) ? $source->source[1] : $source->source ));
    foreach( $source->fields as $k => &$field )
        $field->source = $m->source->fields[$k];
}
PHP
 27 Juin, 2014 à 05:17
#216
// Used on an HTML string to clean up the tags...I guess PHP's strip_tags() was too mainstream for this dude !
function filterTags($str)
{
    return preg_replace("#<[^>]*>#is", '', $str);
}