Skip to main content
2 votes
2 answers
79 views

I have the following code when submitting a form $data['item_cost'] = ( isset( $_POST['item-cost'] ) ? array_map( "filter_var", array_filter( $_POST['item-cost'] ), array( ...
Richard's user avatar
  • 105
1 vote
1 answer
137 views

tic-tac-toe game: X | O | O | X | X | O | X I try to learn ReactJS. I already follow tutorial from https://react.dev/learn/tutorial-tic-tac-toe. But had a hard time to solve the 2nd Challenge of ...
Dulcis Evander's user avatar
0 votes
0 answers
41 views

I need the most efficient way to calculate the total quantity for each base item by going through a list of cart items and sum up the quantities for all cart items having the same base item. My ...
Arnaw Gundawar's user avatar
1 vote
4 answers
113 views

Is there a shorthand for the following code: $result = array_combine( array_map(fn($elem) => "key_$elem", $array), array_map(fn($elem) => "value_$elem", $array) ); ...
plsssineedheeeelp's user avatar
-1 votes
2 answers
76 views

So I have a data response that looks like this - "data": [ { "_id": "65a52c333972416e3ef579a9", "kitchenName": "Micdamilare ...
Olaoluwa Anigboro-Napoleon's user avatar
0 votes
3 answers
524 views

so I am declaring a usestate variable as "count" and I am mapping through a list of 2 items. This code shows the variable declaration and the function to increment and decrement const [count,...
Olaoluwa Anigboro-Napoleon's user avatar
0 votes
2 answers
84 views

I have the following array const CARS = [ {make: "skoda", model: "kodiaq", color: "light-blue", id: "1002", category: "A"}, {make: "skoda&...
Butri's user avatar
  • 457
0 votes
3 answers
101 views

I would like to test if the function array_map('unlink', glob('...*.txt')) did not encounter an error: ex.: try { array_map('unlink', glob('/folder/my_files--*.txt')); } catch (\Exception $e) { ...
SNS - Web et Informatique's user avatar

15 30 50 per page
1
2 3 4 5
31