Posts by Js Dev • 33 points
6 posts
-
0
votes1
answer44
viewsQ: How to display 2 arrays in a foreach?
$array1 = ['Hello', 'World']; $array2 = ['Hello Girl', 'Hello Boy']; foreach($array1 as $text) { echo $text;] }
-
0
votes1
answer42
viewsQ: How to add class ="active"
import React from 'react' import { Link, withRouter } from 'react-router-dom' const isActive= (history, path) => { if (history.location.pathname === path) return { active: 'active' } else return…
-
0
votes1
answer91
viewsQ: How to insert span HTML elements into React object?
That is the code import React, {Component} from 'react'; const content = { title: `Cl<span className="mask">i</span>entes`, description: 'Veja abaixo nossos clientes!' } export default…
-
-3
votes2
answers122
viewsQ: Add accented characters within an array
I have a variable that stores a name: $nome = 'André Ramos'; I have a array that displays all letters: $letras = array ( 'A' => 1, 'B' => 2, 'C' => 3, 'D' => 4, 'F' => 8, 'G' => 3,…
-
0
votes1
answer34
viewsA: I cannot resolve this error. Notice: Undefined variable: tree repor in C: e Notice: Undefined variable: valor_pagar in C:
This error occurs because you missed checking your variable $tree: $arvore_repor = isset($_POST["arvore_repor"]) ? ($_POST["arvore_repor"]) : ''; or you can simply use the function:…
-
1
votes2
answers94
viewsQ: How to sum this number? Example: "the number is 15 then it would be 1+5 = result"
$numero = 15; echo "Resultado: $numero";