Posts by buddy-stack • 131 points
7 posts
-
1
votes0
answers31
viewsQ: Doubt: Intersection between different databases
This POST is more of a question than a problem, I have the following scenario: Two different databases, DB2 and PSQL, they contain records of monitor collections, I need to create an intersection…
phpasked buddy-stack 131 -
1
votes1
answer30
viewsQ: Bug when using array_diff_key() function
Hello, I need to return the difference between two arrays, so I decided to use the native PHP function array_diff_key(), but she doesn’t return anything to me. <?php $array1 = array( 0…
-
2
votes1
answer619
viewsQ: View content only after full page load
Hello, I have the following code snippet below: Code div#container{ position:absolute; width: 100%; height: 100%; top: 0px; left:0px; background-color: #eee; display: block; } div#loader{ border:…
-
-1
votes1
answer50
viewsA: Multiexplode function with array_intersect returning null elements
Possible solution: for($j=0; $j <= 3; $j++){ $lista = implode($lista1); $lista3 = multiexplode(array(":SO"), $lista); }
phpanswered buddy-stack 131 -
-2
votes1
answer50
viewsQ: Multiexplode function with array_intersect returning null elements
Hello, I have the following PHP script: Code: <?php $lista1 = ["CURITIBA:SO","SP","BH","RS"]; $lista2 = ["RJ","SC","AM","CURITIBA"]; function multiexplode ($delimiters,$string) { $ready =…
phpasked buddy-stack 131 -
1
votes0
answers29
viewsQ: Return equal value between two lists using the preg_match function in PHP
Hello, I have two lists and would like to know how I can return the equal values between the elements of these two lists. Code: $lista1 = ["CURITIBA","SP","BH","RS"]; $lista2 =…
phpasked buddy-stack 131 -
4
votes2
answers2472
viewsQ: Fetch words between quotation marks through regular expression
The code below is returning me this error: Notice: Undefined offset: 1 Code: <?php $matches = array(); # Executa expressao $string1 = 'string(10) "CURITIBA" string(11) "SP"'; $pattern =…