Sign in to follow this  
Sunaeon

[CODING HELP] PHP to C#

Recommended Posts

Hi, I'm trying to learn doing a Checker made in C# Console Application.

 

I'm a PHP Developer myself and have done a perfect web-based checker made in PHP yet you know it is PHP and there are better languages to code a checker.

 

Right now I'm looking for a way to fetch a value in a response source of a specific web request in C#

 

In PHP I've simply coded a function to grab a specific value from a web request source.

 

function fetchValue($source,$value,$end){
$str = explode($value,$source);
$str = explode($end,$str[1]);
return $str[0];
}

 

This function returns the $value from the $source that I wanted to fetch. Ex. When grabbing parts of SPECIFIC DATA when doing a POST REQUEST.

 

Any help will greatly be appreciated. Thanks.  :ezy:

Share this post


Link to post
Share on other sites

Add me on discord quickly.

Discord is in my siggy.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this