phpmady Posted June 2, 2010 Share Posted June 2, 2010 Hi Guys, I need to read the variable from the php file, how to do in php? for example $a="asdfsda";$b="asdfdsafsdaf";$c="fasdfsad"; I want to read only $a and $c variable, Hope you got it Thanks Link to comment https://forums.phpfreaks.com/topic/203682-reading-the-variable-from-the-file/ Share on other sites More sharing options...
marcus Posted June 2, 2010 Share Posted June 2, 2010 Just don't use $b then // file a.php $a = "whatever"; $b = "ok then"; $c = "potato"; // file b.php include "a.php"; echo $a . ", you're a " . $c; Link to comment https://forums.phpfreaks.com/topic/203682-reading-the-variable-from-the-file/#findComment-1066851 Share on other sites More sharing options...
phpmady Posted June 2, 2010 Author Share Posted June 2, 2010 hi, am thinking diffrently, really i must be a rubbish, your way of though is smart, but am thinking for reading and everything else rubbishly. Thank You mr Link to comment https://forums.phpfreaks.com/topic/203682-reading-the-variable-from-the-file/#findComment-1066855 Share on other sites More sharing options...
phpmady Posted June 2, 2010 Author Share Posted June 2, 2010 Just don't use $b then // file a.php $a = "whatever"; $b = "ok then"; $c = "potato"; // file b.php include "a.php"; echo $a . ", you're a " . $c; hi, am thinking diffrently, really i must be a rubbish, your way of though is smart, but am thinking for reading and everything else rubbishly. Thank You friend, Also i have one more question to you, i have problem when am using ajax to update the textbox value to database, when am using unicode format am facing this problem, if i use windows 1256 encoding format i dont see any problem actually i am using arabic characters in my project, can u pls help me Link to comment https://forums.phpfreaks.com/topic/203682-reading-the-variable-from-the-file/#findComment-1066858 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.