this is my code
$line = trim(fgets(STDIN));
echo $line;
what browser shows:
Warning: fgets() expects parameter 1 to be resource, string given in /storage/emulated/0/coding/mobilephp
ankit_21 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.