get_option()
unserializes the data for you, as is evidenced by var_dump outputting an array and not a string. The array with title, text, textarea will be in one of the $widget
instances inside the loop. When you extract that array, it is equivalent to this:
$title = 'Titel';
$text = 'Teks';
$textarea = 'Teks Area is hier ';
So to do a comparison inside the loop after $widget
is extracted, you just do something like this:
if ('Titel' == $title ) echo 'Titel found in title!';
That was a big help in pushing me in the right direction. Thank you!!
After reading up a bit more I assigned the values to variables like so.
foreach ( $text_widgets as $widget => $value) {
$title = $value['title'];
}
and now I can work the rest of my magic!