Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
There seems to be no easy way to insert a key and value at the beginning of an array, as array_unset does not allow you to specify a key. This is not a very efficient way to do it, but it works.
Pretend the array is currently: array("a"=>"b", "c"...
0
1349
posted 13 years ago by lemcoe9
Transform $_GET or $_POST in a string to add to an URL and send variables and values.
Argument: Receive an $_GET O $_POST array function.
Returns: variables concatenation to add to the URL.
0
1053
posted 13 years ago by alberomo
Check and Set Default HTTP GET (Verifica e define padrão para parametro HTTP GET)
0
871
posted 13 years ago by cdohost
Print Debug Information (Exibe as informações de depuração)
0
1033
posted 13 years ago by cdohost
Local/Remote Connection Strings (Dados para conexão local e remota)
0
766
posted 13 years ago by cdohost
Prevent direct access to php file (Prevenir acesso direto ao arquivo php)
0
966
posted 13 years ago by cdohost
Only Show Errors in Development Stage (Mostrar erros somente no estágio de desenvolvimento)
0
917
posted 13 years ago by cdohost
Simple function - just place it in your theme's functions.php file, save, and you're good to go. If an image in your content is missing the alt tag, it adds that posts title as the alt tag for the image.
It's been recommended to me that I shouldn'...
0
1674
posted 13 years ago by RainyDayMedia