Posts by user44482 • 31 points
2 posts
-
3
votes1
answer141
viewsQ: call method in the Laravel query
I have this query here: SELECT p.descr, p.dt_hr, f.id_friend FROM users u JOIN friends f ON u.id = f.id_user JOIN posts p ON p.id_user = f.id_friend WHERE u.id = 1 She returns it to me: I’m wanting…
-
-1
votes1
answer339
viewsQ: Scroll through an array and separate the same names to make the appropriate changes
I need to scroll through an array that has the following elements: $MeuArray = array("PEDRO" ,"PEDRO" ,"PEDRO" ,"PEDRO" ,"JOAO" ,"JOAO", "JOAO", "JOAO"); I need to separate by equal names, example:…