url() 공개 정적인 메소드

Formats a string as link.
public static url ( string $value, array $format = [] ) : string
$value string URL
$format array Array with link attributes and params
리턴 string Link
예제 #1
0
 public function testUrl()
 {
     $value = 'http://example.org';
     $format = ['attr' => ' data-haha="foo"', 'params' => 'ilike=+1'];
     $this->assertEquals('<a href="http://example.org?ilike=+1" data-haha="foo">http://example.org</a>', rex_formatter::url($value, $format));
 }