📌  相关文章
📜  tcpdf.php 代码示例中不推荐使用带有花括号的数组和字符串偏移访问语法

📅  最后修改于: 2022-03-11 14:54:24.203000             🧑  作者: Mango

代码示例1
//Let's say you have something like this in your code:
$str = "test";
echo($str{0});

//since PHP 7.4 curly braces method to get individual characters inside a string has been deprecated, so change the above syntax into this:
$str = "test";
echo($str[0]);