Check string length in PHP

前端 未结 7 1730
渐次进展
渐次进展 2020-11-28 14:28

I have a string that is 141 characters in length. Using the following code I have an if statement to return a message if the string is greater or less than 140.

7条回答
  •  执念已碎
    2020-11-28 14:31

    $message is propably not a string at all, but an array. Use $message[0] to access the first element.

提交回复
热议问题