我怎样才能使这个工作代码在php中使用那些引号';s

我怎样才能使这个工作代码在php中使用那些引号';s,php,input,Php,Input,我的代码是这样的,我不知道如何计算:我需要的值是$aantalRijen[0][“QuizNaam”] $output=array(); $output['quizNaam']=$aantalRijen[0][“quizNaam”]; $html.='您不需要使用我认为您混淆了单引号和双引号 你可以互换使用它们 以下是解决方案: <?php $output = array(); $output['quizNaam'] = $aantalRijen[0]["QuizNaam"]; $html

我的代码是这样的,我不知道如何计算:我需要的值是$aantalRijen[0][“QuizNaam”]

$output=array();
$output['quizNaam']=$aantalRijen[0][“quizNaam”];

$html.='您不需要使用
我认为您混淆了单引号和双引号

你可以互换使用它们

以下是解决方案:

<?php
$output = array();
$output['quizNaam'] = $aantalRijen[0]["QuizNaam"];
$html .= '<input readonly type="text" tabindex="-1" class="randomQuiz" value="' . $output['quizNaam'] . '">';
echo $html;
?>

$html.='';
echo$html;

$html .= '<input readonly type="text" tabindex="-1" class="randomQuiz" value="' . $output['quizNaam'] . '">';
<?php
$output = array();
$output['quizNaam'] = $aantalRijen[0]["QuizNaam"];
$html .= '<input readonly type="text" tabindex="-1" class="randomQuiz" value="' . $output['quizNaam'] . '">';
echo $html;
?>
$html .= '<input readonly type="text" tabindex="-1" class="randomQuiz" value="' . $output['quizNaam'] . '">';
echo $html;