I'm working on a project which uses another guy's code and he had all warnings off so I've been trying to clean up his code in order to get a clean compile. I've managed to clean up all but two lines of code, which are being used in a peculiar way.
The code is as follows:
Now what he's trying to do is to get the length of $var_cellname and $var_cdrcellname by splitting into elements and counting the elements. It works, but it returns the error shown above.$var_cellsplit=split( //. $var_cellname ); $var_cdrcellsplit=split( //. $var_cdrcellname );
Is there a way to make this cleaner? I'm assuming he went this way for a reason instead of using length().
Thanks,
Alatar
*EDIT* Roy and Dave, thanks for the explanation. The . was simply a typo as I'm accessing the web from a different PC than where I have the Code. I'm pretty sure now that he was doing this because he wasn't aware of the length() function.
In reply to Use of implicit split to @_ is deprecated by Alatar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |