如何在 php 中执行此操作。我需要使用 php 库吗
<svg
xmlns="http://www.w3.org/2000/svg" width="360" height="180">
<circle class="little" cx="180" cy="45" r="12"/>
<circle class="little" cx="60" cy="90" r="12"/>
<circle class="little" cx="300" cy="135" r="12"/>
</svg>
您好,我上面有一个 xml 数据,我只想将其保存在我的文件夹中:images/circle.svg
这里有没有人可以帮助我。 非常感谢
最佳答案
所以您已将数据存储为变量,对吗?简单易行。
file_put_contents('images/circle.svg', $SVGData);
关于javascript - 如何在php中保存一个svg文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31605623/