How convert linux command CURL to PHP

前端 未结 3 1192
再見小時候
再見小時候 2021-01-24 08:22

I want to convert this linux command console to PHP code, to send data via curl,

curl -X POST -d \'data[][street]=1\' link.....

Thanks!!

3条回答
  •  面向向阳花
    2021-01-24 08:44

    Have you tried PHP cURL library? ;)

    https://php.net/curl

    PHP documentation always gives nice examples.

提交回复
热议问题