HighFlyerPL185 Posted January 13, 2013 Report Share Posted January 13, 2013 Hi there, I want to save some space by inserting a METAR into a table, and with that in mind, it looks rather odd to have something like Current METAR: METAR: EGGP 131420Z 17006KT 7000 SCT025 SCT033 03/00 Q1021 How can I remove the bold METAR from the class? Where is it defined, does anyone know by any chance? Quote Link to comment Share on other sites More sharing options...
Sava Posted January 13, 2013 Report Share Posted January 13, 2013 you can just cut off the first 6 characters of the output by using php 1 Quote Link to comment Share on other sites More sharing options...
HighFlyerPL185 Posted January 13, 2013 Author Report Share Posted January 13, 2013 you can just cut off the first 6 characters of the output by using php Did not even think of that, thank you Quote Link to comment Share on other sites More sharing options...
Sava Posted January 13, 2013 Report Share Posted January 13, 2013 You're welcome. Quote Link to comment Share on other sites More sharing options...
freshJet Posted January 14, 2013 Report Share Posted January 14, 2013 $str = [metar code here] $str2 = substr($str, 7); It's 7 because the space needs removed too 1 Quote Link to comment Share on other sites More sharing options...
Sava Posted January 14, 2013 Report Share Posted January 14, 2013 Yeap, I thought I included that. Thanks! Quote Link to comment Share on other sites More sharing options...
HighFlyerPL185 Posted January 15, 2013 Author Report Share Posted January 15, 2013 $str = [metar code here] $str2 = substr($str, 7); It's 7 because the space needs removed too Haha, I've noticed that eventually and fixed it, but thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.