This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
list($lat, $lon) = explode(',', '-22.903322,-43.173098'); | |
echo $lat; //-22.903322 | |
echo $lon; //-43.173098 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[include_form template="contato" titulo="Formulário de Contato"] | |
// É feito o include do arquivo "forms/contato.php", com uma variável $titulo, com valor "Formulário de Contato" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* With this we remove all not necessary HTML Tags for the URL and use the Title attr, also add a "ml-advert" metada for jQuery on() control | |
Where: | |
$ret_val = "<a" . | |
" href='" . MLA_BASE_URL . "out.php?id=" . $this->get_advert_id() . "'" . | |
" onmouseover='maskLink(this,event,\"" . $url_mask . "\")'" . | |
" onclick='maskLink(this,event,\"" . $url_mask . "\")'" . | |
" onmouseout='maskLink(this,event,\"" . $url_mask . "\")'" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Array from JSON Webservice | |
$array = array(); | |
//Decoding all values from UTF-8 | |
str_recursive_map('utf8_decode',$array); | |
//Applying htmlentities ( Good for other charset ) | |
str_recursive_map('htmlentities',$array); |
NewerOlder