Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~356 People Reached
Favorite Forums
Favorite Tags
Member Avatar for arda_1

$handle = fopen("mytext.txt", "r"); echo fread($handle,filesize("mytext.txt")); echo preg_match("/[0-9]/","",$handle); fclose($handle); I want to open a text file and find how many digits are there in the text. I tried to use preg_match but I think this is not correct way to do it.

0
89
Member Avatar for arda_1

<!DOCTYPE html> <html> <body> <script type="text/javascript"> var images = ["strawberry.jpg", "apple.jpg", "cherry.jpg", "orange.jpg", "pear.jpg"]; var length = images.length; var randImg1 = Math.round(Math.random() * (length - 1)); document.write('<img src="' + images[randImg1] + '" >'); var randImg2 = Math.round(Math.random() * (length - 1)); document.write('<img src="' + images[randImg2] + '" >'); var randImg3 …

Member Avatar for mblan180131
0
267