Billy_front Posted July 5, 2010 Share Posted July 5, 2010 Hi, i'm getting CTYPE as output when i use the following code: $var=substr(file_get_contents("file.txt"),$var_start,$var_length); echo "$var"; print_r ($var); I know that you use ctype function to check the content of a varible or such, but i can't find what it means in this case? Any help is welcome! Link to comment https://forums.phpfreaks.com/topic/206753-what-does-ctype-mean-as-output/ Share on other sites More sharing options...
nblackwood Posted July 5, 2010 Share Posted July 5, 2010 Hello. Try this: <?php $var=file_get_contents("file.txt"); echo $var; ?> it worked for me. I think your problem was the substr() function. Link to comment https://forums.phpfreaks.com/topic/206753-what-does-ctype-mean-as-output/#findComment-1081292 Share on other sites More sharing options...
Billy_front Posted July 5, 2010 Author Share Posted July 5, 2010 I reworked the code so i could use another function that didn't go crazy But thanks for the answer! Link to comment https://forums.phpfreaks.com/topic/206753-what-does-ctype-mean-as-output/#findComment-1081309 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.