Tag: 分裂

我如何分割一个string,所以我可以访问项目x?

使用SQL Server,如何分割一个string,以便可以访问项目x? 采取一个string“你好John Smith”。 我怎样才能分割string的空间和访问索引1应返回“约翰”的项目?

如何在PHP中从csv文件中提取数据

我有一个csv文件,看起来像这样 $lines[0] = "text, with commas", "another text", 123, "text",5; $lines[1] = "some without commas", "another text", 123, "text"; $lines[2] = "some text with commas or no",, 123, "text"; 我想要一个表格: $t[0] = array("text, with commas", "another text", "123", "text","5"); $t[1] = array("some without commas", "another text", "123", "text"); $t[2] = array("some text, with comma,s or […]