Topic: php test

<?php

$text = 'method bla
{
    background-color: red;
}';
preg_match("#method \s+ ([a-z0-9]+) [\s\r\n\t]* \{ [\s\r\n\t]* ([^\}]*) [\s\r\n\t]* \}#imsuUx", $text, $matches);
print_r($matches);

Re: php test

[php]
<?php

$text = 'method bla
{
    background-color: red;
}';
preg_match("#method \s+ ([a-z0-9]+) [\s\r\n\t]* \{ [\s\r\n\t]* ([^\}]*) [\s\r\n\t]* \}#imsuUx", $text, $matches);
print_r($matches);
[/php]

Re: php test

code highlighting sucks a bit

Re: php test

yes to some extent what are you trying to achieve by the way

Re: php test

<?php
function random_text($count, $rm_similar = true) {
// create list of characters
    $chars = array_flip(array_merge(range(0, 9), range('a', 'z')));

// remove similar looking characters that might cause confusion
    if ($rm_similar) {
        unset($chars[0], $chars[1], $chars[2], $chars[5], $chars[8], $chars['b'], $chars['i'], $chars['o'], $chars['q'], $chars['s'], $chars['u'], $chars['v'], $chars['z']);
    }
// generate the string of random text
    for ($i = 0, $text = ''; $i < $count; $i++) {
        $text .= array_rand($chars);
    }
    return $text;
}
?>

Re: php test

Test COLOR RED

Informations et guide sur d'Asnieres sur seine
Infogeti Société d'infogérance

Re: php test

TEST

Informations et guide sur d'Asnieres sur seine
Infogeti Société d'infogérance

Re: php test

test