public function getPriceWithDisacountAttribute(){
return $this->price - $this->discount;
}
$model -> price_with_discount
Justify content space between => выравнивать пространство между содержимым
strpos(...) !== false
, потому что здесь может быть возвращен 0if(exampleVar === 1) alert(1)
let vol = <?= json_encode($vol) ?>;
let cat = [];
for (let i = 0; i < 6; i++) {
cat[i] = vol[i];
console.log(cat[i]);
}
console.log(cat[2]);