Hi I am a php developer but fairly new to c# Can someone please help me convert this php line of code to C#
I would really appreciate it .
$str