I have an array
$texts = [ "maybank2u.com",
"Open BillPayment",
"Status: Successful",
"Reference number 2950211545",
"Transaction date: 01 Feb 2016 13:09:17",
"Amount: RM100.00",
"From Account 564155051577 WCAa" ]
HTML
<div class="row">
<div class="col-12">
<ul>
<?php foreach ($texts as $row =>$value): ?>
<li><h3> <?php echo ucfirst($value) ?></h3></li>
<?php endforeach ?>
</ul>
<label>Status:</label><input type="text" name="status" value="" id="status"><br>
</div>
</div>
I tried this solution but it's not working in my case. I want to set the value of $value into the input field
<input>. Which$valuedo you want to insert there? The"Status: Successful"one? So you end up withvalue="successful"?"Status: Successful"into the input field