Posts by Henrique Schreiner • 317 points
4 posts
-
10
votes4
answers268
viewsA: How to improve this jQuery code?
Like good javascript practices, it is interesting to create variables of each element that will be manipulated, to avoid too many accesses to DOM trees. Look at these modifications I made to the…
-
1
votes1
answer73
viewsA: Problem with different encodings between databases
Try using this function to convert the string to UTF-8: mb_convert_encoding($string, "UTF-8", mb_detect_encoding($string, "UTF-8, ISO-8859-1, ISO-8859-15", true));
-
-3
votes2
answers1942
viewsA: How to insert EMOJI - SMARTFONES into Mysql database with PHP?
A simpler way is to add the emoji inside the message as a span with a specific CSS class that matches it. In the database, save the message normally as HTML.
-
3
votes2
answers957
viewsA: Include within class and access to $this, self or Static
In fact, Composer uses autoloader to include files based on a directory structure. For example, the class Modules\Db\Adapter, would be in a directory with the PHP file Modules\Db\Adapter.php. The…
phpanswered Henrique Schreiner 317