<?php
$url = urlencode( 'Casamento Joao + Maria | Ensaio' );
echo $url;
PD9waHAKCgoJJHVybCA9IHVybGVuY29kZSggJ0Nhc2FtZW50byBKb2FvICsgTWFyaWEgfCBFbnNhaW8nICk7CgoJJHVybCA9IHN0cl9yZXBsYWNlKCAnJTdDJywgJ3wnLCAkdXJsICk7CgkkdXJsID0gc3RyX3JlcGxhY2UoICcrJywgJy0nLCAkdXJsICk7CgkkdXJsID0gc3RyX3JlcGxhY2UoICclMkInLCAnKycsICR1cmwgKTsKCQoJZWNobyAkdXJsOwoJCgk=