• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

How To: Byte Arrays in PHP

Hi,
How can i convert this c# snippet to PHP to pass the result as a paramater to a web service method call

string pub_key = "BC542794-2738-4BCD-B1E4-C4E64457GE80";
byte[]  pub_bytes = ( new Guid( pub_key ) ).ToByteArray();

Thanks for the help!
0
amagondes
Asked:
amagondes
1 Solution
 
hernst42Commented:
In php there is no real difference between strings and bytearrays.
What does the class Guid make. In php there is no such class or similar function.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now