Posts by Lucas Pires • 217 points
3 posts
-
3
votes1
answer589
viewsQ: Set values of an array recursively
Assuming I have the following array array( 'chave1' => 'valor1', 'chave2' => array( 'chave3' => 'valor2', 'chave4' => array( 'chave5' => 'valor3' ) )) And in this array I need to set…
-
15
votes2
answers2622
viewsQ: What to save in a login session?
I am developing a login system in PHP and Mysql for an administration panel, and I have seen many "secure" login systems where they store in the session the user login or password, that is when they…
-
3
votes1
answer2118
viewsQ: How to remove non-alphanumeric characters without losing accentuation?
I am able to remove the non-alphanumeric ones as follows preg_replace('/[^a-z0-9\s]/i', null, $string ); However, in this way I am losing the accentuation of words, someone has some answer?…