Hallo,
ich habe den Inhlat in Text-Format:
	
und ich möchte in diese Text eine Änderung mit PHP vornehmen. Zum Beispiel ich möchte nur ich möchte nur title von "id": "e3" ändern oder content von "id": "e2" ändern.
Also bestimmte Platz Ändern aber weil es gielche Namen mehr mals vorkommen, wie ich das machen soll, weiss ich nicht.
Könnte jemand mir helfen ?
Danke!!
					ich habe den Inhlat in Text-Format:
PHP Code:
	
	
{
  "doctitle": "Test Dokument",
  "date": "02.05.2007",
  "locked": false,
  "locktime": 1181258563,
  "read": true,
  "write": true,
  "entry": [
    {
       "id": "e1",
       "title": "Test-Entry 1",
       "content": "blabla ...",
       "time": "02.05.2007",
       "edittime": "02.05.2007",
       "read": true,
       "write": true,
    },
    {
       "id": "e2",
       "title": "Test-Entry 2",
       "content": "blabla ... <font style=\"font-size:16px\">asd</font>",
       "time": "02.05.2007",
       "edittime": "02.05.2007",
       "read": true,
       "write": true,
    },
    {
       "id": "e3",
       "title": "Test-Entry 3",
       "content": "blabla ...",
       "time": "02.05.2007",
       "edittime": "02.05.2007",
       "read": true,
       "write": false,
    }
  ]
} 
Also bestimmte Platz Ändern aber weil es gielche Namen mehr mals vorkommen, wie ich das machen soll, weiss ich nicht.
Könnte jemand mir helfen ?
Danke!!
 
          
Comment