Jump to content

String lengh


moisesbr

Recommended Posts

I want to execute a command if the lengh of a string is equal 11

 

Using: if (strlen($cpf) = 11  { //codes...  

 

  }

 

But I got message :
 

Fatal error: Can't use function return value in write context in /home/monitorr/public_html/busca_correios.php on line 49

 

Line 49 is that one, but am not sure if there is an error in this funcion.

Link to comment
https://forums.phpfreaks.com/topic/280568-string-lengh/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.