Hi! Could we please enable some services and cookies to improve your experience and our website?

PHPize Online / SQLize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear

Stuck with a problem? Got Error? Ask AI support!

Copy Clear
Copy Format Clear
<?php $json = <<<'JSON' [ { "dot_id": 28130, "key": "ef_hvordan_kan__27047_1", "type": "formatted_text", "title": "How can cognitive therapy help you?", "attributes": "a:9:{s:6:\"#value\";s:356:\"<p>Cognitive therapy is a psychological method that has been well researched. It has been well documented as a good treatment for several types of problems, including anxiety disorders, depression and sleep difficulties.</p>\n<p>It can also be useful even if you don't have a specific mental illness, for example, if you struggle with stress or fatigue.</p>\";s:14:\"#title_display\";s:1:\"0\";s:13:\"#markup_value\";s:356:\"<p>Cognitive therapy is a psychological method that has been well researched. It has been well documented as a good treatment for several types of problems, including anxiety disorders, depression and sleep difficulties.</p>\n<p>It can also be useful even if you don't have a specific mental illness, for example, if you struggle with stress or fatigue.</p>\";s:26:\"#headline_horizontal_align\";s:1:\"0\";s:17:\"#horizontal_align\";s:1:\"0\";s:22:\"#disable_wiki_feedback\";s:1:\"0\";s:19:\"#disable_animations\";s:1:\"0\";s:14:\"#managed_files\";a:0:{}s:15:\"#is_description\";s:1:\"0\";}", "created_at": 1454005403, "updated_at": 1746106025, "weight": 0 }, { "dot_id": 28130, "key": "ef_headline_27047_3", "type": "formatted_text", "title": "There are often many ways of looking at things!", "attributes": "a:9:{s:6:\"#value\";s:486:\"<p>We tend to trust our thoughts quite a lot. However, our thoughts rarely reflect reality and we can make mistakes more often than we think. This is something we should be aware of because what we think affects how we feel and what we do.</p><p>Cognitive therapy is about breaking with/challenging our thoughts and preferably finding alternative thoughts. This will change how we feel.</p><p>Here is an example showing us how different interpretations can change the way we feel:</p>\";s:14:\"#title_display\";s:1:\"1\";s:13:\"#markup_value\";s:486:\"<p>We tend to trust our thoughts quite a lot. However, our thoughts rarely reflect reality and we can make mistakes more often than we think. This is something we should be aware of because what we think affects how we feel and what we do.</p><p>Cognitive therapy is about breaking with/challenging our thoughts and preferably finding alternative thoughts. This will change how we feel.</p><p>Here is an example showing us how different interpretations can change the way we feel:</p>\";s:26:\"#headline_horizontal_align\";s:1:\"0\";s:17:\"#horizontal_align\";s:1:\"0\";s:19:\"#disable_animations\";s:1:\"0\";s:22:\"#disable_wiki_feedback\";s:1:\"0\";s:14:\"#managed_files\";a:0:{}s:15:\"#is_description\";s:1:\"0\";}", "created_at": 1454005404, "updated_at": 1746106025, "weight": 8 }, { "dot_id": 28130, "key": "ef_headline_27047_5", "type": "formatted_text", "title": "Change interpretation- change how we feel- can change your actions!", "attributes": "a:10:{s:6:\"#value\";s:294:\"<p>It is helpful to know what thoughts we are actually having at the moment.  As we saw, it affects how we feel. And how we feel also affects what we do. You can see below how different interpretations can trigger different emotions, which can, in turn, lead to different types of actions:</p>\";s:14:\"#title_display\";s:1:\"1\";s:13:\"#markup_value\";s:294:\"<p>It is helpful to know what thoughts we are actually having at the moment.  As we saw, it affects how we feel. And how we feel also affects what we do. You can see below how different interpretations can trigger different emotions, which can, in turn, lead to different types of actions:</p>\";s:26:\"#headline_horizontal_align\";s:1:\"0\";s:17:\"#horizontal_align\";s:1:\"0\";s:19:\"#disable_animations\";s:1:\"0\";s:22:\"#disable_wiki_feedback\";s:1:\"0\";s:14:\"#managed_files\";a:0:{}s:16:\"#expres_hashtags\";s:2:\"[]\";s:15:\"#is_description\";s:1:\"0\";}", "created_at": 1454005404, "updated_at": 1746106025, "weight": 11 }, { "dot_id": 28130, "key": "ef_sideskift_27047_7", "type": "pagebreak", "title": "Sideskift", "attributes": "a:0:{}", "created_at": 1455115290, "updated_at": 1746106025, "weight": 1 }, { "dot_id": 28130, "key": "ef_overskrift_27047_8", "type": "formatted_text", "title": "Thoughts - Feelings - Actions", "attributes": "a:9:{s:6:\"#value\";s:291:\"<p>There is always an interplay between thoughts, feelings and actions. What we think, affects what we feel and do. What we feel, affects what we do and think. What we do, in turn, affects what we think and feel.</p><p>You can see an example below of how this interplay typically works.</p>\";s:14:\"#title_display\";s:1:\"1\";s:13:\"#markup_value\";s:291:\"<p>There is always an interplay between thoughts, feelings and actions. What we think, affects what we feel and do. What we feel, affects what we do and think. What we do, in turn, affects what we think and feel.</p><p>You can see an example below of how this interplay typically works.</p>\";s:26:\"#headline_horizontal_align\";s:1:\"0\";s:17:\"#horizontal_align\";s:1:\"0\";s:19:\"#disable_animations\";s:1:\"0\";s:22:\"#disable_wiki_feedback\";s:1:\"0\";s:14:\"#managed_files\";a:0:{}s:15:\"#is_description\";s:1:\"0\";}", "created_at": 1455115294, "updated_at": 1746106025, "weight": 2 }, { "dot_id": 28130, "key": "ef_sideskift_27047_9", "type": "pagebreak", "title": "Sideskift", "attributes": "a:0:{}", "created_at": 1455115398, "updated_at": 1746106025, "weight": 4 }, { "dot_id": 28130, "key": "ef_sideskift_27047_10", "type": "pagebreak", "title": "Sideskift", "attributes": "a:0:{}", "created_at": 1455115529, "updated_at": 1746106025, "weight": 10 }, { "dot_id": 28130, "key": "ef_sideskift_27047_11", "type": "pagebreak", "title": "Sideskift", "attributes": "a:0:{}", "created_at": 1455115662, "updated_at": 1746106025, "weight": 15 }, { "dot_id": 28130, "key": "ef_overskrift_27047_12", "type": "formatted_text", "title": "Understanding thoughts, feelings and behavior can help you", "attributes": "a:8:{s:6:\"#value\";s:437:\"<p>This tool is based on cognitive therapy and will therefore focus a lot on what you think, feel and do about the things you are struggling with. By challenging your thoughts and what you do, you can significantly reduce negative feelings.</p>\n<p>When you reduce negative feelings you will also find that your thought process calms down a bit and that you are able to focus a lot more on what you yourself want to achieve in life.</p>\n\";s:14:\"#title_display\";s:1:\"1\";s:13:\"#markup_value\";s:437:\"<p>This tool is based on cognitive therapy and will therefore focus a lot on what you think, feel and do about the things you are struggling with. By challenging your thoughts and what you do, you can significantly reduce negative feelings.</p>\n<p>When you reduce negative feelings you will also find that your thought process calms down a bit and that you are able to focus a lot more on what you yourself want to achieve in life.</p>\n\";s:26:\"#headline_horizontal_align\";s:1:\"0\";s:17:\"#horizontal_align\";s:1:\"0\";s:22:\"#disable_wiki_feedback\";s:1:\"0\";s:19:\"#disable_animations\";s:1:\"0\";s:14:\"#managed_files\";a:0:{}}", "created_at": 1455115665, "updated_at": 1746106025, "weight": 16 }, { "dot_id": 28130, "key": "ef_bilde_27047_14", "type": "media", "title": "samspillet mellom tanker, følelser og handlinger.", "attributes": "a:16:{s:11:\"#media_type\";s:14:\"expres_upimage\";s:14:\"#title_display\";s:1:\"0\";s:11:\"#media_item\";a:5:{s:3:\"fid\";s:5:\"31083\";s:12:\"file_managed\";b:1;s:5:\"title\";s:0:\"\";s:3:\"alt\";s:0:\"\";s:4:\"data\";a:5:{s:1:\"x\";s:1:\"0\";s:1:\"y\";s:1:\"0\";s:5:\"width\";s:3:\"860\";s:6:\"height\";s:3:\"555\";s:7:\"changed\";s:1:\"0\";}}s:15:\"#fullwidth_mode\";s:1:\"0\";s:11:\"#show_mouse\";s:1:\"1\";s:26:\"#headline_horizontal_align\";s:1:\"0\";s:17:\"#horizontal_align\";s:1:\"1\";s:18:\"#image_style_shape\";s:1:\"0\";s:17:\"#image_style_edge\";s:1:\"0\";s:18:\"#image_style_angle\";s:1:\"0\";s:21:\"#image_style_polaroid\";s:1:\"0\";s:19:\"#image_style_source\";s:1:\"0\";s:8:\"#old_fid\";s:5:\"31083\";s:19:\"#disable_animations\";s:1:\"0\";s:12:\"#description\";s:561:\"Diagram: The interplay between thoughts, feelings and actions shows the process that causes anxiety. Where bad thoughts lead to bad feelings, which in turn lead to inappropriate actions. This interplay is often a vicious circle. \r\n\r\nThoughts: \"This is dangerous!\", \"This is not going to go well\", \"I'm going to look stupid\", \"People think I am weird\", \"Now I'm going to die!\". Resulting feelings: Becoming afraid - anxious - Unsure, Heart palpitations - Shaking - Sweating. Resulting actions/behavior: Getting out of the situation, Avoiding similar situations. \";s:14:\"#lightbox_link\";s:1:\"1\";}", "created_at": 1459505069, "updated_at": 1746106025, "weight": 3 }, { "dot_id": 28130, "key": "ef_bilde_27047_15", "type": "media", "title": "Kognitiv-terapi-diagram", "attributes": "a:17:{s:11:\"#media_type\";s:14:\"expres_upimage\";s:14:\"#title_display\";s:1:\"0\";s:11:\"#media_item\";a:5:{s:3:\"fid\";s:5:\"31091\";s:12:\"file_managed\";b:1;s:5:\"title\";s:0:\"\";s:3:\"alt\";s:0:\"\";s:4:\"data\";a:5:{s:1:\"x\";s:1:\"0\";s:1:\"y\";s:1:\"0\";s:5:\"width\";s:3:\"992\";s:6:\"height\";s:3:\"430\";s:7:\"changed\";s:1:\"0\";}}s:15:\"#fullwidth_mode\";s:1:\"0\";s:11:\"#show_mouse\";s:1:\"1\";s:26:\"#headline_horizontal_align\";s:1:\"0\";s:17:\"#horizontal_align\";s:1:\"1\";s:18:\"#image_style_shape\";s:1:\"0\";s:17:\"#image_style_edge\";s:1:\"0\";s:18:\"#image_style_angle\";s:1:\"0\";s:21:\"#image_style_polaroid\";s:1:\"0\";s:19:\"#image_style_source\";s:1:\"0\";s:8:\"#old_fid\";s:5:\"31091\";s:12:\"#media_width\";s:3:\"100\";s:19:\"#disable_animations\";s:1:\"0\";s:12:\"#description\";s:218:\"Diagram: A situation can trigger many different thoughts and subsequent feelings. In this diagram you can see an example of a situation where you meet someone in the street and they walk past you without saying hello. \";s:14:\"#lightbox_link\";s:1:\"1\";}", "created_at": 1459505237, "updated_at": 1746106025, "weight": 9 }, { "dot_id": 28130, "key": "ef_bilde_27047_16", "type": "media", "title": "Kognitiv-terapi-diagram", "attributes": "a:17:{s:11:\"#media_type\";s:14:\"expres_upimage\";s:14:\"#title_display\";s:1:\"0\";s:11:\"#media_item\";a:5:{s:3:\"fid\";s:5:\"31089\";s:12:\"file_managed\";b:1;s:5:\"title\";s:0:\"\";s:3:\"alt\";s:0:\"\";s:4:\"data\";a:5:{s:1:\"x\";s:1:\"0\";s:1:\"y\";s:1:\"0\";s:5:\"width\";s:3:\"992\";s:6:\"height\";s:3:\"430\";s:7:\"changed\";s:1:\"0\";}}s:15:\"#fullwidth_mode\";s:1:\"0\";s:11:\"#show_mouse\";s:1:\"1\";s:26:\"#headline_horizontal_align\";s:1:\"0\";s:17:\"#horizontal_align\";s:1:\"1\";s:18:\"#image_style_shape\";s:1:\"0\";s:17:\"#image_style_edge\";s:1:\"0\";s:18:\"#image_style_angle\";s:1:\"0\";s:21:\"#image_style_polaroid\";s:1:\"0\";s:19:\"#image_style_source\";s:1:\"0\";s:8:\"#old_fid\";s:5:\"31089\";s:12:\"#media_width\";s:3:\"100\";s:19:\"#disable_animations\";s:1:\"0\";s:12:\"#description\";s:272:\"Diagram: A situation can trigger many different thoughts and subsequent feelings. In this diagram we can see an example of a situation where you meet someone in the street and they walk past you without saying hello. How we interpret the situation can change the outcome. \";s:14:\"#lightbox_link\";s:1:\"1\";}", "created_at": 1459505649, "updated_at": 1746106025, "weight": 12 }, { "dot_id": 28130, "key": "ef_sideskift_27047_17", "type": "pagebreak", "title": "Sideskift", "attributes": "a:0:{}", "created_at": 1520159165, "updated_at": 1746106025, "weight": 7 }, { "dot_id": 28130, "key": "ef_overskrift_27047_18", "type": "formatted_text", "title": "Cognitive therapy", "attributes": "a:8:{s:6:\"#value\";s:84:\"<p>In cognitive therapy, we often simplify this interplay in the following way:</p>\n\";s:14:\"#title_display\";s:1:\"1\";s:13:\"#markup_value\";s:84:\"<p>In cognitive therapy, we often simplify this interplay in the following way:</p>\n\";s:26:\"#headline_horizontal_align\";s:1:\"0\";s:17:\"#horizontal_align\";s:1:\"0\";s:19:\"#disable_animations\";s:1:\"0\";s:22:\"#disable_wiki_feedback\";s:1:\"0\";s:14:\"#managed_files\";a:0:{}}", "created_at": 1520159170, "updated_at": 1746106025, "weight": 5 }, { "dot_id": 28130, "key": "ef_video_27047_19", "type": "media", "title": "Kognitiv-terapi-diagram", "attributes": "a:16:{s:11:\"#media_type\";s:14:\"expres_upimage\";s:14:\"#title_display\";s:1:\"0\";s:11:\"#media_item\";a:5:{s:3:\"fid\";s:5:\"31085\";s:12:\"file_managed\";b:1;s:5:\"title\";s:0:\"\";s:3:\"alt\";s:0:\"\";s:4:\"data\";a:5:{s:1:\"x\";s:1:\"0\";s:1:\"y\";s:1:\"0\";s:5:\"width\";s:3:\"992\";s:6:\"height\";s:2:\"95\";s:7:\"changed\";s:1:\"0\";}}s:15:\"#fullwidth_mode\";s:1:\"0\";s:11:\"#show_mouse\";s:1:\"1\";s:26:\"#headline_horizontal_align\";s:1:\"0\";s:17:\"#horizontal_align\";s:1:\"0\";s:18:\"#image_style_shape\";s:1:\"0\";s:17:\"#image_style_edge\";s:1:\"0\";s:18:\"#image_style_angle\";s:1:\"0\";s:21:\"#image_style_polaroid\";s:1:\"0\";s:19:\"#image_style_source\";s:1:\"0\";s:19:\"#disable_animations\";s:1:\"0\";s:8:\"#old_fid\";s:5:\"31085\";s:12:\"#description\";s:186:\"Diagram: The interplay between thoughts, feelings and actions simplified in a row rather than a triangle. Bad thoughts lead to bad feelings, which in turn lead to inappropriate actions. \";s:14:\"#lightbox_link\";s:1:\"1\";}", "created_at": 1520159207, "updated_at": 1746106025, "weight": 6 }, { "dot_id": 28130, "key": "ef_page_break_28130_25", "type": "pagebreak", "title": "Page Break", "attributes": "a:0:{}", "created_at": 1746106022, "updated_at": 1746106025, "weight": 13 }, { "dot_id": 28130, "key": "ef_none__28130_26", "type": "formatted_text", "title": "<none>", "attributes": "a:9:{s:6:\"#value\";s:1482:\"<p><strong>Basic needs are important regardless of life situation, but they are especially important in periods of high stress or challenges.</strong></p>\n<p>Here are some examples of these various types of needs:</p>\n<dl class=\"ckeditor-accordion\">\n<dt>Physiological</dt>\n<dd>\n<p>In order for the body to survive physically, we need food, water, air, sleep, physical activity, a specific temperature, etc.</p>\n</dd>\n<dt>Safety</dt>\n<dd>\n<p>In order to function in everyday life, we need certain control over our own destiny and a certain degree of predictability, security and protection. This can be in the form of a place to live, safe people around you,  good health, access to a doctor etc.</p>\n</dd>\n<dt>Social</dt>\n<dd>\n<p>We all (to a greater or lesser extent) need other people through friendships, family relations or intimate relationships, which provide a sense of belonging, identity, support, love and loyalty.</p>\n</dd>\n<dt>Recognition</dt>\n<dd>\n<p>We need to feel that we are good enough, that we are important and can be ourselves and that others respect us. Our security in the form of recognition can, for example, affect our belief in mastering tasks, our self-esteem and our trust in others.</p>\n</dd>\n<dt>Self-realization</dt>\n<dd>\n<p>We need to use our abilities and resources to, for example be creative, spontaneous, problem solvers, outreaching and curious. This is also about being able to live out our longings and dreams.</p>\n</dd>\n</dl>\";s:14:\"#managed_files\";a:0:{}s:14:\"#title_display\";s:1:\"1\";s:15:\"#is_description\";s:1:\"0\";s:13:\"#markup_value\";s:1482:\"<p><strong>Basic needs are important regardless of life situation, but they are especially important in periods of high stress or challenges.</strong></p>\n<p>Here are some examples of these various types of needs:</p>\n<dl class=\"ckeditor-accordion\">\n<dt>Physiological</dt>\n<dd>\n<p>In order for the body to survive physically, we need food, water, air, sleep, physical activity, a specific temperature, etc.</p>\n</dd>\n<dt>Safety</dt>\n<dd>\n<p>In order to function in everyday life, we need certain control over our own destiny and a certain degree of predictability, security and protection. This can be in the form of a place to live, safe people around you,  good health, access to a doctor etc.</p>\n</dd>\n<dt>Social</dt>\n<dd>\n<p>We all (to a greater or lesser extent) need other people through friendships, family relations or intimate relationships, which provide a sense of belonging, identity, support, love and loyalty.</p>\n</dd>\n<dt>Recognition</dt>\n<dd>\n<p>We need to feel that we are good enough, that we are important and can be ourselves and that others respect us. Our security in the form of recognition can, for example, affect our belief in mastering tasks, our self-esteem and our trust in others.</p>\n</dd>\n<dt>Self-realization</dt>\n<dd>\n<p>We need to use our abilities and resources to, for example be creative, spontaneous, problem solvers, outreaching and curious. This is also about being able to live out our longings and dreams.</p>\n</dd>\n</dl>\";s:22:\"#disable_wiki_feedback\";s:1:\"0\";s:26:\"#headline_horizontal_align\";s:1:\"0\";s:17:\"#horizontal_align\";s:1:\"0\";s:19:\"#disable_animations\";s:1:\"0\";}", "created_at": 1746106025, "updated_at": 1746106030, "weight": 14 } ] JSON; $data = json_decode($json, true); foreach ($data as &$item) { // Unserialize attributes if (isset($item['attributes'])) { $item['attributes'] = @unserialize($item['attributes']) ?: null; } // Convert timestamps to ISO 8601 (DateTime) format foreach (['created_at', 'updated_at'] as $field) { if (isset($item[$field]) && is_numeric($item[$field])) { $item[$field] = date(DATE_ATOM, (int) $item[$field]); } } } header('Content-Type: application/json'); echo json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
Copy Clear