Posts by Pedro Danilo • 51 points
4 posts
-
0
votes1
answer312
viewsQ: Function with cookies in PHP
I need a php function that checks if the user has already accessed such a file, if yes, opens X javascript file, if not accessed, opens another javascript file. Example: 1° access = open test.js 2°…
-
1
votes2
answers33
viewsQ: Replace starting at x and ending at y in php
I have the following html code: <a title="Link 01" href="http://www.meusite.com.br/?id=121451781">Link 01</a> <a title="Link 10" href="http://www.meusite.com.br/?id=13456712">Link…
phpasked Pedro Danilo 51 -
1
votes1
answer871
viewsQ: How to get the values within multiple tags?
I have the following html page: <!DOCTYPE html> <html> <head> <title>Exemplo</title> </head> <body> <div id="text">Valor 1</div> <div…
phpasked Pedro Danilo 51 -
2
votes1
answer550
viewsQ: Replace one symbol with another in PHP
I’m looking to replace all the signs of + for vírgula with PHP. I’m doing it this way: $q = $_GET['q']; $string = str_replace("+",",","$q"); This is removing the signal from +, but it gives me an…