I have a weird problem. I try to add two strings together but instad the variable evaluates to 0. Why is this happening and how to fix it ?
<?php
require_once('config.php');
$connect->query("SELECT id, name FROM room");
$rooms = $connect->get();
print_r($rooms);
$result = "<ul>";
$asd = "Test";
/*
foreach($rooms as $room ){
$result += $result + "<li>". $room['name'] ."</li>";
print_r($result);
}*/
$result += $result + "</ul>";
$asd = $asd + "AAAA";
print_r($asd);
//print_r($result);
//print_r($asd) outputs 0