Posts by Vinícius Fagundes • 256 points
6 posts
-
1
votes3
answers939
viewsA: What is the difference between Directoryiterator and Filesystemiterator?
The answer is in the first comment on the Filesystemiterator. When you iterate using Directoryiterator each "value" returned is the same Directoryiterator Object. The Internal state is changed so…
-
4
votes1
answer3575
viewsA: Create a curved div
I always recommend asking a question here, for some code, or visual example with code on http://jsfiddle.net/ for example. It is interesting to show some effort. My solution is this DEMO: Html:…
cssanswered Vinícius Fagundes 256 -
1
votes2
answers1472
viewsA: Database for mobile devices
Yes. It is possible to exchange the database. Of course, it all depends on your application architecture, database structure, database location (client or server). There are several relational…
-
3
votes1
answer1362
viewsA: while in infinite loop using $result = $result->fetch(PDO::FETCH_ASSOC);
There are two errors in your code. The first mistake is simple you are endlessly copying all the content of $arr for $row, a solution would be to use foreach. foreach($arr as $row) { echo…
-
4
votes2
answers109
viewsA: Custom typing
Is not possible. Note further that the cast or data conversion is used to turn one data type into another. What you are trying to do is turn the 'format' or value of a variable (string) to high box,…
-
1
votes1
answer188
viewsA: Performance of call_user_func_array . Why do libraries only use it with 5 arguments or more?
Answering your question. Yes is slower. That one question similar to yours in Stackoverflow gringo has as one of the answers that the call is 15 times slower using call_user_func_array but nay put…
phpanswered Vinícius Fagundes 256