-2
<a class='btn btn-danger' href='delete.php?sesi=user&id=".$data['username']."'>Hapus</a>

can someoen explain the function of dot(.)

RiggsFolly
  • 93,638
  • 21
  • 103
  • 149
hoddi
  • 1
  • 1
  • 4
  • 1
    it concatonates the php - this seems to be written in one php string. it basically tells php that "the next part here, is php code, and not a string", and then the string starts again after the next dot. – Stender Aug 26 '20 at 10:56
  • 2
    Does this answer your question? [What does a . (dot) do in PHP?](https://stackoverflow.com/questions/6484968/what-does-a-dot-do-in-php) – Fitzi Aug 26 '20 at 10:56
  • 2
    Maybe also look at [What does this symbol mean in PHP](https://stackoverflow.com/questions/3737139/reference-what-does-this-symbol-mean-in-php) – Fitzi Aug 26 '20 at 10:56
  • Concatenation? Post a full php code extract, not something cut in the middle of nowhere if you want someone to understand what it is about... – fpierrat Aug 26 '20 at 10:58

1 Answers1

0

It's not a function. It's concatenation operator to connect between strings

I took this example from here

<?php
  $a = "Hello ";
  $b = $a . "World!"; // now $b contains "Hello World!"

  $a = "Hello ";
  $a .= "World!";     // now $a contains "Hello World!"
?>
Refat Alsakka
  • 561
  • 2
  • 11