Posts by Lucas Melo • 127 points
6 posts
-
1
votes1
answer122
viewsQ: Find words in a string
I am creating a PHP function that receives a string. Then he must search within that string, words inside square brackets and save them in an array. Is there a function that searches only these…
-
2
votes0
answers121
viewsQ: Filter retweets using the twitter API
I’m making a search tool using the twitter API to receive tweets. However, I am having a problem related to retweets, every search I do, more than half of the results are retweets. Is there a way…
-
3
votes1
answer247
viewsQ: I can’t do a word search between brackets in php
I created a function to check if some words exist in an array. I want to search for words within "[ ] brackets". Example: [how] [to give], [to love] ... For this, I am using the function…
-
3
votes1
answer280
viewsA: Exporting my database to CSV with PHP
I managed to solve by adding these 3 lines $acentua = utf8_decode($row["$i"]); <- meu código $order = array("\r\n", "\n", "\r"); $replace = '<br />'; $acentua = str_replace($order,…
-
2
votes1
answer280
viewsQ: Exporting my database to CSV with PHP
I created a php code that performs a twitter search and saves the result (100 tweets) in a database. In this code, I also have the option to select all tweets from the database and export them to a…
-
1
votes2
answers55
viewsQ: I cannot delete a range of words in a string
I made a function in PHP that returns the result of a POST and converts to a string using Curl. However, my code returns a lot of useless information. I wanted to manipulate the string so that I…