Posts by user7438004 • 357 points
8 posts
-
2
votes2
answers2299
viewsQ: Make all LI to the height of the largest using CSS
I have some elements <li> that I guide to stay inline-block. However, as the content of each <li> it’s different, they end up getting DIFFERENT HEIGHT. Kind of like this: However, the…
-
4
votes5
answers590
viewsQ: Remove chunk from a string
have a string, example: 32137hyb8bhbhu837218nhbuhuh&3298j19j2n39 I want to remove (clear) from the string everything that comes after the &. Please, how to do this?…
-
0
votes1
answer80
viewsQ: php regular expression
I’m trying to get a whole source code from a website. using CURL I used regular expression preg_match('/<html>(.*)<\/html>/i', $resultado, $codigo); echo $codigo = $codigo[1]; but it…
-
0
votes1
answer759
viewsQ: Sql Query, fetch data from given ID
how to make a query, searching data from the given ID? For example, my table has 1 thousand records, I want to determine in a foreach the search of the data from the record 300.
-
2
votes3
answers522
viewsQ: Regular expression, PHP
What is the correct way to validate the string for the nomenclature below, using Regular expression? /filmes/todos-filmes/notas-espectadores/?page=[SÓ NUMEROS]
-
14
votes3
answers262
viewsQ: How to validate strings?
I have the following strings: www.adorocinema.com/filmes/filme-226616/fotos www.adorocinema.com/slideshows/filmes/slideshow-124792 www.adorocinema.com/noticias/filmes/noticia-125494…
-
1
votes1
answer301
viewsQ: How to get link from any anchor using regular expression?
I use this code to capture links from a particular page: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch,…
-
1
votes1
answer627
viewsQ: Variable inside an array does not work
is a CLOUDINARY image upload system. When I use a fixed value for PUBLIC_ID, it works! $files["remote"] = \Cloudinary\Uploader::upload($sample_paths["couple"], array_merge($default_upload_options,…