public static dynamic (mixed $text, [mixed $leftDelimiter], [mixed $rightDelimiter], [mixed $separator])
Generates random text in accordance with the template
1 2 3 4 | echo Phalcon\Text::dynamic( "{Hi|Hello}, my name is a {Bob|Mark|Jon}!" ); // Hi my name is a Bob echo Phalcon\Text::dynamic( "{Hi|Hello}, my name is a {Bob|Mark|Jon}!" ); // Hi my name is a Jon echo Phalcon\Text::dynamic( "{Hi|Hello}, my name is a {Bob|Mark|Jon}!" ); // Hello my name is a Bob echo Phalcon\Text::dynamic( "[Hi/Hello], my name is a [Zyxep/Mark]!" , '[' , ']' , '/' ); // Hello my name is a Zyxep |
Please login to continue.